Skip to content

Commit

Permalink
test: Skip run if debug enabled and OS not matched
Browse files Browse the repository at this point in the history
  • Loading branch information
azuwis committed Jan 5, 2024
1 parent d6704a8 commit 495f130
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,17 @@ jobs:
shell: [shell, shell-bin]
runs-on: ${{ matrix.os }}
steps:
- name: Skip run if debug enabled and OS not matched
if: >-
${{ github.event_name == 'workflow_dispatch' && inputs.debug
&& ! ((inputs.os == 'all' || inputs.os == matrix.os) && matrix.shell == 'shell')
}}
run: exit 1
- uses: actions/checkout@v3
- uses: azuwis/nix-action@main
with:
key: pianotrans-${{ matrix.shell }}-${{ hashFiles('flake.*', 'nix/**') }}
debug: >-
${{ github.event_name == 'workflow_dispatch'
&& inputs.debug
&& matrix.shell == 'shell'
&& (inputs.os == 'all'|| inputs.os == matrix.os)
}}
debug: ${{ github.event_name == 'workflow_dispatch' && inputs.debug }}
credential: ${{ secrets.TTYD_CREDENTIAL }}
- uses: cachix/cachix-action@v12
with:
Expand Down

0 comments on commit 495f130

Please sign in to comment.