diff --git a/.github/dependabot.yml b/.github/dependabot.yml index cb59567..fe8cb6e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,15 +1,16 @@ # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates version: 2 updates: - - package-ecosystem: github-actions - directory: / - schedule: - interval: weekly - day: monday - time: "09:00" - commit-message: - prefix: fix - prefix-development: chore - include: scope - labels: - - dependencies +- package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + day: monday + time: "09:00" + commit-message: + prefix: fix + prefix-development: chore + include: scope + labels: + - gha + - dependencies diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index f3ece94..0000000 --- a/.github/stale.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 120 - -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 14 - -# Issues with these labels will never be considered stale -exemptLabels: - - enhancement - - pinned - - security - -# Label to use when marking an issue as stale -staleLabel: wontfix - -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed in 7 days if no further activity occurs. - If the issue is still valid, please add a respective comment to prevent this - issue from being closed automatically. Thank you for your contributions. - -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f2614d4..fa4ffc4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,14 +2,16 @@ # SPDX-FileContributor: Sebastian Thomschke, Vegard IT GmbH # SPDX-License-Identifier: Apache-2.0 # -# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions name: Build on: + schedule: + - cron: '0 15 1 * *' push: - branches: - - '**' - tags-ignore: + branches-ignore: # build all branches except: + - 'dependabot/**' # prevent GHA triggered twice (once for commit to the branch and once for opening/syncing the PR) + tags-ignore: # don't build tags - '**' paths-ignore: - '**/*.adoc' @@ -17,13 +19,21 @@ on: - '.editorconfig' - '.git*' - '.github/*.yml' + - '.github/workflows/stale.yml' - 'tools' pull_request: + paths-ignore: + - '**/*.adoc' + - '**/*.md' + - '.editorconfig' + - '.git*' + - '.github/*.yml' + - 'tools' workflow_dispatch: # https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/ inputs: debug-with-ssh: - description: "Start an SSH session for debugging purposes after tests ran:" + description: "Start an SSH session for debugging purposes at the end of the build:" default: never type: choice options: [ always, on_failure, on_failure_or_cancelled, never ] @@ -41,23 +51,29 @@ on: type: choice options: [ "", cpp, cs, eval, flash, hl, java, jvm, lua, neko, node, php, python ] + defaults: run: shell: bash + jobs: + + ########################################################### build: + ########################################################### # https://github.com/vegardit/haxe-reusable-workflows/ uses: vegardit/haxe-reusable-workflows/.github/workflows/test-with-haxe.yml@dev strategy: fail-fast: false matrix: - os: + os: # https://github.com/actions/runner-images#available-images - ubuntu-latest - macos-13 # Intel - windows-latest haxe: - nightly + - latest - 4.3.6 - 4.2.5 include: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..c4dd70e --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,54 @@ +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions +name: Stale issues + +on: + schedule: + - cron: '0 15 1,15 * *' + workflow_dispatch: + # https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/ + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + + steps: + - name: Git checkout + uses: actions/checkout@v4 # https://github.com/actions/checkout + + - name: Run stale action + uses: actions/stale@v9 # https://github.com/actions/stale + with: + days-before-stale: 90 + days-before-close: 14 + stale-issue-message: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed in 14 days if no further activity occurs. + If the issue is still valid, please add a respective comment to prevent this + issue from being closed automatically. Thank you for your contributions. + stale-issue-label: stale + close-issue-label: wontfix + exempt-issue-labels: | + enhancement + pinned + security + + - name: Run stale action (for enhancements) + uses: actions/stale@v9 # https://github.com/actions/stale + with: + days-before-stale: 360 + days-before-close: 14 + stale-issue-message: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed in 14 days if no further activity occurs. + If the issue is still valid, please add a respective comment to prevent this + issue from being closed automatically. Thank you for your contributions. + stale-issue-label: stale + close-issue-label: wontfix + only-labels: enhancement + exempt-issue-labels: | + pinned + security