Skip to content

Commit

Permalink
Fixes for workflow dispatch in iso build (#infra)
Browse files Browse the repository at this point in the history
Seems that the workflow dispatch is not properly working. Fix that
because it gives us great testing benefit.
  • Loading branch information
jkonecny12 committed Jun 28, 2023
1 parent c7c41bf commit 09e9d61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-boot-iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ jobs:
# we post statuses manually as this does not run from a pull_request event
# https://developer.github.com/v3/repos/statuses/#create-a-status
- name: Create in-progress status
if: github.event_name != 'workflow_dispatch'
uses: octokit/request-action@v2.x
with:
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}'
Expand Down Expand Up @@ -166,7 +167,7 @@ jobs:
result/iso/boot.iso
- name: Set result status
if: always()
if: {{ always() && github.event_name != 'workflow_dispatch' }}
uses: octokit/request-action@v2.x
with:
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-boot-iso.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:
# we post statuses manually as this does not run from a pull_request event
# https://developer.github.com/v3/repos/statuses/#create-a-status
- name: Create in-progress status
if: github.event_name != 'workflow_dispatch'
uses: octokit/request-action@v2.x
with:
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}'
Expand Down Expand Up @@ -160,7 +161,7 @@ jobs:
result/iso/boot.iso

- name: Set result status
if: always()
if: {{ always() && github.event_name != 'workflow_dispatch' }}
uses: octokit/request-action@v2.x
with:
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}'
Expand Down

0 comments on commit 09e9d61

Please sign in to comment.