Skip to content

Commit aade821

Browse files
committed
also allow manual trigger
1 parent 54496c0 commit aade821

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/auto-patch-release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,24 @@ on:
33
schedule:
44
# Run every Thursday right before midnight
55
- cron: '59 23 * * 4'
6+
workflow_dispatch:
67
jobs:
78
create_patch_release:
89
name: Create release
910
runs-on: ubuntu-latest
1011
steps:
12+
- name: Determine if we skip cancel checks
13+
id: skip-checks
14+
shell: bash
15+
# Skip checks if we are not a scheduled run
16+
run: echo value=$(test ${{ github.event_name }} != schedule && echo true || echo false) >> "$GITHUB_OUTPUT"
17+
1118
- name: Create release
1219
uses: dequelabs/axe-api-team-public/.github/actions/auto-patch-release-v1@main
1320
with:
1421
token: ${{ secrets.GITHUB_TOKEN }}
1522
project_token: ${{ secrets.GH_PROJECT_TOKEN }}
23+
skip_checks: ${{ steps.skip-checks.outputs.value }}
1624
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
1725
odd_release: 'true'
1826
release-command: bash .github/scripts/prepare_release.sh

0 commit comments

Comments
 (0)