Skip to content

Commit

Permalink
also allow manual trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
AdnoC committed Aug 24, 2023
1 parent 54496c0 commit aade821
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/auto-patch-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,24 @@ on:
schedule:
# Run every Thursday right before midnight
- cron: '59 23 * * 4'
workflow_dispatch:
jobs:
create_patch_release:
name: Create release
runs-on: ubuntu-latest
steps:
- name: Determine if we skip cancel checks
id: skip-checks
shell: bash
# Skip checks if we are not a scheduled run
run: echo value=$(test ${{ github.event_name }} != schedule && echo true || echo false) >> "$GITHUB_OUTPUT"

- name: Create release
uses: dequelabs/axe-api-team-public/.github/actions/auto-patch-release-v1@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
project_token: ${{ secrets.GH_PROJECT_TOKEN }}
skip_checks: ${{ steps.skip-checks.outputs.value }}
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
odd_release: 'true'
release-command: bash .github/scripts/prepare_release.sh
Expand Down

0 comments on commit aade821

Please sign in to comment.