Skip to content

Commit bcc47dc

Browse files
feat(keepalive): Remove keepalive feature, fixes #41, replaces #42 (#43)
1 parent a4dc9ce commit bcc47dc

6 files changed

Lines changed: 11 additions & 72 deletions

File tree

.github/workflows/add-on-disable-checkout-test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,4 @@ jobs:
4343
addon_repository: ${{ env.ADD_ON }}
4444
addon_ref: ${{ env.ADD_ON_REF }}
4545
addon_path: tested-addon
46-
keepalive: false
4746
disable_checkout_action: true

.github/workflows/add-ons-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ jobs:
8282
uses: jenseng/dynamic-uses@v1
8383
with:
8484
uses: ${{ steps.set_action_call.outputs.action_ref }}
85-
with: '{"ddev_version": "${{ matrix.ddev_version }}", "token": "${{ secrets.GITHUB_TOKEN }}", "addon_repository": "${{ matrix.add_on.name }}", "addon_ref": "${{ steps.last_tag.outputs.add_on_last_tag }}", "addon_path": "tested-addon", "keepalive": false, "test_command": "${{ matrix.add_on.test_command }}" }'
85+
with: '{"ddev_version": "${{ matrix.ddev_version }}", "token": "${{ secrets.GITHUB_TOKEN }}", "addon_repository": "${{ matrix.add_on.name }}", "addon_ref": "${{ steps.last_tag.outputs.add_on_last_tag }}", "addon_path": "tested-addon", "test_command": "${{ matrix.add_on.test_command }}" }'

.github/workflows/keepalive.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ The [public API](https://semver.org/spec/v2.0.0.html#spec-item-1) of this projec
1111

1212
---
1313

14+
## [v2.4.0](https://github.com/ddev/github-action-add-on-test/releases/tag/v2.4.0) - 2025-04-22
15+
16+
[_Compare with previous release_](https://github.com/ddev/github-action-add-on-test/compare/v2.3.0...v2.4.0)
17+
18+
### Removed
19+
20+
- Remove "Keep alive" feature as [related repository](https://github.com/gautamkrishnar/keepalive-workflow) has been disabled
21+
22+
---
23+
1424
## [v2.3.0](https://github.com/ddev/github-action-add-on-test/releases/tag/v2.3.0) - 2024-10-29
1525

1626
[_Compare with previous release_](https://github.com/ddev/github-action-add-on-test/compare/v2.2.0...v2.3.0)

README.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -107,37 +107,6 @@ Default: `./`
107107

108108
---
109109

110-
- `keepalive` (_Boolean_)
111-
112-
Keeps GitHub from turning off tests after 60 days.
113-
114-
If enabled, action will use [keepalive-workflow action](https://github.com/gautamkrishnar/keepalive-workflow) when `ddev_version` has been set to `stable`.
115-
116-
**N.B.** If enabled, you have to update the permission of the main workflow to `write`:
117-
118-
```yaml
119-
permissions:
120-
actions: write
121-
```
122-
123-
Not required.
124-
125-
Default: `true`.
126-
127-
---
128-
129-
- `keepalive_time_elapsed` (_String_)
130-
131-
Time elapsed from the previous commit to keep the repository active using GitHub API (in days).
132-
133-
Will be used as the `time_elapsed` key of the [keepalive-workflow action](https://github.com/gautamkrishnar/keepalive-workflow).
134-
135-
Not required.
136-
137-
Default: `"0"`.
138-
139-
---
140-
141110
- `debug_enabled` (_Boolean_)
142111

143112
If `true`, a tmate session will be accessible before the tests step. See [action-tmate](https://github.com/mxschmitt/action-tmate) for more details.

action.yaml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,6 @@ inputs:
2525
required: false
2626
default: "./"
2727

28-
keepalive:
29-
type: boolean
30-
description: "Keeps GitHub from turning off tests after 60 days"
31-
required: false
32-
default: true
33-
34-
keepalive_time_elapsed:
35-
description: "Time elapsed from the most recent commit to hit API and prevent expiration (in days)"
36-
required: false
37-
default: "0"
38-
3928
debug_enabled:
4029
type: boolean
4130
description: "Debug with tmate"
@@ -130,12 +119,6 @@ runs:
130119
echo "Running: $TEST_COMMAND in $ADDON_PATH"
131120
cd $ADDON_PATH && $TEST_COMMAND
132121
133-
# keepalive-workflow keeps GitHub from turning off tests after 60 days
134-
- uses: gautamkrishnar/keepalive-workflow@v2
135-
if: always() && matrix.ddev_version == 'stable' && inputs.keepalive == 'true' && github.event_name == 'schedule'
136-
with:
137-
time_elapsed: ${{ inputs.keepalive_time_elapsed }}
138-
139122
branding:
140123
icon: "code"
141124
color: "blue"

0 commit comments

Comments
 (0)