Skip to content

Commit

Permalink
feat(keepalive): Use gautamkrishnar/keepalive-workflow@v2 to avoid du…
Browse files Browse the repository at this point in the history
…mmy commit
  • Loading branch information
julienloizelet committed Mar 14, 2024
1 parent db63ea7 commit d78582d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ If enabled, action will use [keepalive-workflow action](https://github.com/gauta

```yaml
permissions:
contents: write
actions: write
```

Not required.
Expand Down Expand Up @@ -188,7 +188,7 @@ on:
default: false
permissions:
contents: write
actions: write
jobs:
tests:
Expand All @@ -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 }}
Expand Down
6 changes: 2 additions & 4 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d78582d

Please sign in to comment.