From d78582df26c9a2c7501f9703bfdbfe1ec2184e7f Mon Sep 17 00:00:00 2001 From: Julien Loizelet Date: Thu, 14 Mar 2024 17:26:46 +0900 Subject: [PATCH] feat(keepalive): Use gautamkrishnar/keepalive-workflow@v2 to avoid dummy commit --- .github/workflows/keepalive.yml | 6 ++---- CHANGELOG.md | 11 +++++++++++ README.md | 6 +++--- action.yaml | 6 ++---- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml index 9c6c313..87ea4a9 100644 --- a/.github/workflows/keepalive.yml +++ b/.github/workflows/keepalive.yml @@ -15,9 +15,7 @@ jobs: - name: Clone project files uses: actions/checkout@v4 - # keepalive-workflow adds a dummy commit if there's no other action here, keeps - # GitHub from turning off tests after 60 days - - uses: gautamkrishnar/keepalive-workflow@v1 + # keepalive-workflow keeps GitHub from turning off tests after 60 days + - uses: gautamkrishnar/keepalive-workflow@v2 with: - commit_message: "chore(*): Automated commit to keep the repository active" time_elapsed: 50 diff --git a/CHANGELOG.md b/CHANGELOG.md index 717f778..3d053c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,17 @@ The [public API](https://semver.org/spec/v2.0.0.html#spec-item-1) of this projec --- +## [v2.0.0](https://github.com/ddev/github-action-add-on-test/releases/tag/v2.0.0) - 2024-03-?? + +[_Compare with previous release_](https://github.com/ddev/github-action-add-on-test/compare/v1.2.0...v2.0.0) + +### Changed + +- **Breaking change**: Use `gautamkrishnar/keepalive-workflow@v2` to avoid dummy commit. This change requires + modifying permission from `content: write` to `actions: write` in the main workflow. + +--- + ## [v1.2.0](https://github.com/ddev/github-action-add-on-test/releases/tag/v1.2.0) - 2024-02-19 [_Compare with previous release_](https://github.com/ddev/github-action-add-on-test/compare/v1.1.1...v1.2.0) diff --git a/README.md b/README.md index fe0f65e..7ee8afa 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ If enabled, action will use [keepalive-workflow action](https://github.com/gauta ```yaml permissions: - contents: write + actions: write ``` Not required. @@ -188,7 +188,7 @@ on: default: false permissions: - contents: write + actions: write jobs: tests: @@ -202,7 +202,7 @@ jobs: steps: - - uses: ddev/github-action-add-on-test@v1 + - uses: ddev/github-action-add-on-test@v2 with: ddev_version: ${{ matrix.ddev_version }} token: ${{ secrets.GITHUB_TOKEN }} diff --git a/action.yaml b/action.yaml index f6fedf4..4473e66 100644 --- a/action.yaml +++ b/action.yaml @@ -106,12 +106,10 @@ runs: shell: bash run: cd ${{ inputs.addon_path }} && bats tests - # keepalive-workflow adds a dummy commit if there's no other action here, keeps - # GitHub from turning off tests after 60 days - - uses: gautamkrishnar/keepalive-workflow@v1 + # keepalive-workflow keeps GitHub from turning off tests after 60 days + - uses: gautamkrishnar/keepalive-workflow@v2 if: always() && matrix.ddev_version == 'stable' && inputs.keepalive == 'true' with: - commit_message: "chore(*): Automated commit to keep the repository active" time_elapsed: ${{ inputs.keepalive_time_elapsed }} branding: