Skip to content

Commit e192149

Browse files
authored
GitHub Actions: Dispact Release workflow after test (#67)
1 parent 117660f commit e192149

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,28 @@ jobs:
211211
pattern: php-matrix_*
212212
separate-directories: true
213213
delete-merged: true
214+
215+
dispatch:
216+
if: github.event_name == 'push' && github.ref_type == 'tag'
217+
needs:
218+
- pest
219+
- build
220+
- e2e
221+
- merge
222+
permissions:
223+
actions: write
224+
runs-on: ubuntu-24.04
225+
steps:
226+
- name: Dispatch Release Workflow
227+
run: |
228+
gh workflow run release.yml \
229+
--repo "${REPO}" \
230+
--ref "${REF}" \
231+
-f version="${VERSION}" \
232+
-f run_id="${RUN_ID}"
233+
env:
234+
REPO: ${{ github.repository }}
235+
REF: ${{ github.ref }}
236+
VERSION: ${{ github.ref_name }}
237+
RUN_ID: ${{ github.run_id }}
238+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)