Skip to content

Commit

Permalink
Add contidional output
Browse files Browse the repository at this point in the history
  • Loading branch information
iainelder committed Jul 1, 2024
1 parent 201423b commit 401570b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test_changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ jobs:
list_changes:
name: List changed installers
runs-on: ubuntu-latest
outputs:
installers: ${{ github.event_name == 'push' && steps.changed.outputs.changed_installers || steps.all.outputs.all_installers }}
steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -19,6 +21,7 @@ jobs:
files: programs/**

- name: Get changed installer names
id: changed
if: github.event_name == 'push'
env:
CHANGED_FILES: ${{steps.changed-installers.outputs.all_changed_files}}
Expand All @@ -30,6 +33,7 @@ jobs:
} >> "$GITHUB_OUTPUT"
- name: Get all installer names
id: all
if: github.event_name != 'push'
run: |
{
Expand Down

0 comments on commit 401570b

Please sign in to comment.