Skip to content

Commit

Permalink
chore(ci): Trigger Release workflow only when Testing successful
Browse files Browse the repository at this point in the history
To avoid accidentally releasing a broken build.
  • Loading branch information
mcaskill committed Jan 12, 2024
1 parent c239c63 commit d983eec
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
name: Release

on:
push:
branches:
- main
- beta
- alpha
- next
- next-major
workflow_run:
workflows: [ PHP Testing ]
types: [ completed ]
branches: [ main ]

jobs:
release:
runs-on: ubuntu-latest

if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- name: Get Token
id: get_workflow_token
Expand Down

0 comments on commit d983eec

Please sign in to comment.