Skip to content

Commit fe2a1f8

Browse files
committed
🐛 require build before deploy.
1 parent 53ebdf1 commit fe2a1f8

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
permissions:
4343
contents: write
4444
packages: write
45+
actions: write
4546

4647
steps:
4748
- uses: actions/checkout@v4
@@ -176,15 +177,10 @@ jobs:
176177
- name: Delete snapshots artifacts from cache
177178
run: find ~/.m2 -name \*-SNAPSHOT -type d -exec rm -rf {} +
178179

179-
deploy:
180-
runs-on: ubuntu-latest
181-
needs: main-root
182-
if: ${{needs.main-root.outputs.is-main}}
183-
permissions:
184-
actions: write
185-
steps:
186-
- # dispatch workflow
187-
env:
188-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
189-
run: |
190-
gh workflow run -R 'commonhaus/automation' deploy.yml
180+
- name: Trigger deploy
181+
id: trigger-deploy
182+
if: ${{needs.main-root.outputs.is-main}}
183+
env:
184+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
185+
run: |
186+
gh workflow run -R 'commonhaus/automation' deploy.yml

0 commit comments

Comments
 (0)