Skip to content

Commit

Permalink
trigger builder_production first
Browse files Browse the repository at this point in the history
  • Loading branch information
neithanmo committed May 20, 2024
1 parent 3ca208d commit 19c708c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:

build_ledger_production:
needs: configure
if: ${{ github.event_name == 'workflow_dispatch' }}
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.run_build_ledger_production == 'true' }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -216,10 +216,10 @@ jobs:
- name: Trigger Build Ledger Production
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/actions/workflows/main.yml/dispatches \
-d '{"ref": "${{ github.event.workflow_run.head_branch }}"}'
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/actions/workflows/main.yml/dispatches \
-d '{"ref": "${{ github.event.workflow_run.head_branch }}", "inputs": {"run_build_ledger_production": true}}'
test_zemu:
needs: [tests_zemu_setup]
Expand Down

0 comments on commit 19c708c

Please sign in to comment.