From 27fe4eaee6fcd2dce604f3542d47d24726a58c07 Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Tue, 29 Jun 2021 23:04:25 +0200 Subject: [PATCH 1/4] Improve github action Trigger workflow on every branch (It will be easier to test with different branches before making a pull request) Add dependabot, check if github action have update and make PR, if there is one Add FUNDING Add Close Stale Issues, closes issues and PR after 75 days if doesn't have activity Signed-off-by: Bensuperpc --- ".github/FUNDING.yml\n" | 1 + .github/dependabot.yml | 9 +++++++++ .github/workflows/expired.yml | 22 ++++++++++++++++++++++ .github/workflows/main.yml | 2 +- 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 ".github/FUNDING.yml\n" create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/expired.yml diff --git "a/.github/FUNDING.yml\n" "b/.github/FUNDING.yml\n" new file mode 100644 index 0000000..db05b88 --- /dev/null +++ "b/.github/FUNDING.yml\n" @@ -0,0 +1 @@ +github: dockcross diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..fe89e52 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +# Set update schedule for GitHub Actions + +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every weekday + interval: "daily" diff --git a/.github/workflows/expired.yml b/.github/workflows/expired.yml new file mode 100644 index 0000000..40743ff --- /dev/null +++ b/.github/workflows/expired.yml @@ -0,0 +1,22 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '* * */1 * *' +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + exempt-issue-milestones: 'future,alpha,beta,release' + exempt-pr-milestones: 'bugfix,improvement' + exempt-all-pr-assignees: true + stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.' + stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.' + close-issue-message: 'This issue was closed because it has been stalled for 15 days with no activity.' + close-pr-message: 'This PR was closed because it has been stalled for 15 days with no activity.' + days-before-issue-stale: 60 + days-before-pr-stale: 60 + days-before-issue-close: 15 + days-before-pr-close: 15 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 19f2df5..b66a5db 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: Dockcross CI on: push: branches: - - 'master' + - '*' pull_request: branches: - '*' From 979896aa30a8ce6822e4f19d7ac78cb6f14157a4 Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Wed, 30 Jun 2021 16:45:24 +0200 Subject: [PATCH 2/4] Increase time to 120 days and 60 days for stale Increase time to 120 days and 60 days for stale Signed-off-by: Bensuperpc --- .github/workflows/expired.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/expired.yml b/.github/workflows/expired.yml index 40743ff..ec6e5b3 100644 --- a/.github/workflows/expired.yml +++ b/.github/workflows/expired.yml @@ -16,7 +16,7 @@ jobs: stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.' close-issue-message: 'This issue was closed because it has been stalled for 15 days with no activity.' close-pr-message: 'This PR was closed because it has been stalled for 15 days with no activity.' - days-before-issue-stale: 60 - days-before-pr-stale: 60 - days-before-issue-close: 15 - days-before-pr-close: 15 + days-before-issue-stale: 120 + days-before-pr-stale: 120 + days-before-issue-close: 30 + days-before-pr-close: 30 From d39e7764fa5c7ec08ab87cbbbda140bda65d6e09 Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Thu, 1 Jul 2021 00:13:05 +0200 Subject: [PATCH 3/4] Merge with master and remove FUNDING Merge with master and remove FUNDING Signed-off-by: Bensuperpc --- ".github/FUNDING.yml\n" | 1 - 1 file changed, 1 deletion(-) delete mode 100644 ".github/FUNDING.yml\n" diff --git "a/.github/FUNDING.yml\n" "b/.github/FUNDING.yml\n" deleted file mode 100644 index db05b88..0000000 --- "a/.github/FUNDING.yml\n" +++ /dev/null @@ -1 +0,0 @@ -github: dockcross From f859d18cd6838594126aa9675c8b40732860320e Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Thu, 1 Jul 2021 00:15:25 +0200 Subject: [PATCH 4/4] Add workflow_dispatch Allow to manually trigger workflow or trigger by scripts Signed-off-by: Bensuperpc --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 041c8ba..234e365 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,7 @@ on: - '*' paths-ignore: - '**/README.md' + workflow_dispatch: jobs: base: