mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
GitHub Actions: add log cleaner, adjust names, fix labelling on approve
This commit is contained in:
22
.github/workflows/build-train.yml
vendored
22
.github/workflows/build-train.yml
vendored
@@ -1,22 +0,0 @@
|
|||||||
name: Run Build Train on config changes
|
|
||||||
run-name: Run build train - Pushed commit "${{ github.event.push.head_commit.message }}"
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- "main"
|
|
||||||
paths:
|
|
||||||
- "config/*.config"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-train-dispatch:
|
|
||||||
name: Send dispatch
|
|
||||||
if: ${{ github.repository_owner == 'Armbian' }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Repository Dispatch
|
|
||||||
uses: peter-evans/repository-dispatch@v3
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.ACCESS_TOKEN }}
|
|
||||||
repository: armbian/os
|
|
||||||
event-type: "Repository update"
|
|
||||||
27
.github/workflows/clean-workflow-logs.yml
vendored
Normal file
27
.github/workflows/clean-workflow-logs.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: Clean Workflow Logs
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * 1" # Runs "At 00:00 on Monday." (see https://crontab.guru)
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
runs_older_than:
|
||||||
|
description: "The amount of days old to delete"
|
||||||
|
default: "21"
|
||||||
|
required: false
|
||||||
|
|
||||||
|
env:
|
||||||
|
SCHEDULED_RUNS_OLDER_THAN: "21"
|
||||||
|
SCHEDULED_RUNS_TO_KEEP: "0"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
clean-logs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
actions: write
|
||||||
|
steps:
|
||||||
|
- uses: igorjs/gh-actions-clean-workflow@v6
|
||||||
|
with:
|
||||||
|
runs_older_than: ${{ github.event.inputs.runs_older_than || env.SCHEDULED_RUNS_OLDER_THAN }}
|
||||||
|
runs_to_keep: ${{ github.event.inputs.runs_to_keep || env.SCHEDULED_RUNS_TO_KEEP }}
|
||||||
24
.github/workflows/issue-welcome-first-time.yml
vendored
Normal file
24
.github/workflows/issue-welcome-first-time.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
name: "Welcome first-time issue contributor"
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: opened
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
welcome-first-time-contributor:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
steps:
|
||||||
|
- uses: plbstl/first-contribution@v3
|
||||||
|
with:
|
||||||
|
labels: "Good first issue"
|
||||||
|
issue-opened-msg: |
|
||||||
|
### Hey @{fc-author} !
|
||||||
|
|
||||||
|
Looks like it's your first time interacting with Armbian here on GitHub.
|
||||||
|
|
||||||
|
Welcome and thank you for taking the time to report an issue :heart:.
|
||||||
|
|
||||||
|
Don't forget to star :star: the repo.
|
||||||
2
.github/workflows/merge-announce.yml
vendored
2
.github/workflows/merge-announce.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: push
|
name: "Announce PR merge to Discord"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|||||||
4
.github/workflows/pr-label-on-approved.yml
vendored
4
.github/workflows/pr-label-on-approved.yml
vendored
@@ -1,8 +1,8 @@
|
|||||||
on: pull_request_target
|
on: pull_request_review
|
||||||
name: Label approved pull requests
|
name: Label approved pull requests
|
||||||
jobs:
|
jobs:
|
||||||
labelWhenApproved:
|
labelWhenApproved:
|
||||||
if: github.event.review.state == 'approved'
|
if: ${{ github.repository_owner == 'armbian' }}
|
||||||
name: Label when approved
|
name: Label when approved
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
23
.github/workflows/pr-welcome-first-time.yml
vendored
Normal file
23
.github/workflows/pr-welcome-first-time.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: "Welcome first-time PR contributor"
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types: opened
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
welcome-first-time-contributor:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
steps:
|
||||||
|
- uses: plbstl/first-contribution@v3
|
||||||
|
with:
|
||||||
|
pr-opened-msg: |
|
||||||
|
### Hey @{fc-author} !
|
||||||
|
|
||||||
|
Looks like it's your first pull reqests to Armbian codebase.
|
||||||
|
|
||||||
|
Welcome and thank you for contributing :heart: :heart: :heart:.
|
||||||
|
|
||||||
|
Don't forget to star :star: the repo.
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
name: Update board list at armbian/os
|
name: Update Board Lists
|
||||||
run-name: Update board list at armbian/os - Pushed commit "${{ github.event.push.head_commit.message }}"
|
run-name: Update board list at armbian/os
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
Reference in New Issue
Block a user