Skip to content

Commit

Permalink
Support act for running CI on a dev's machine
Browse files Browse the repository at this point in the history
e.g. with:
act -j "build" --input IMAGE="[\"iris-community:latest-em\"]"
  • Loading branch information
isc-tleavitt committed Jan 30, 2024
1 parent 6d1be2d commit b554c02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- uses: actions/checkout@master
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Images list
if: ${{ !env.ACT }}
id: set-matrix
run: |
images=""
Expand All @@ -51,7 +52,7 @@ jobs:
strategy:
fail-fast: false
matrix:
image: ${{ fromJson(needs.prepare.outputs.images) }}
image: ${{ fromJson(github.event.inputs.IMAGE || needs.prepare.outputs.images) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
Expand Down

0 comments on commit b554c02

Please sign in to comment.