Skip to content

Commit

Permalink
workflow dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref authored Oct 9, 2024
1 parent 5baf7f5 commit df61ba3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,38 @@ jobs:
- uses: actions/checkout@v4
- name: A
env:
A: ${{ github.event_name == 'pull_request' }}
A: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo A: ${A}
- name: B
env:
B: ${{ github.event_name == 'pull_request' && 1 || 0 }}
B: ${{ github.event_name == 'workflow_dispatch' && 1 || 0 }}
run: |
echo B: ${B}
- name: C
env:
C: ${{ github.event_name == 'pull_request' && 0 || 1 }}
C: ${{ github.event_name == 'workflow_dispatch' && 0 || 1 }}
run: |
echo C: ${C}
- name: D
uses: ./
with:
skip-checkout: ${{ github.event_name == 'pull_request' }}
skip-checkout: ${{ github.event_name == 'workflow_dispatch' }}

- name: E
uses: ./
with:
skip-checkout: ${{ github.event_name == 'pull_request' && 1 || 0 }}
skip-checkout: ${{ github.event_name == 'workflow_dispatch' && 1 || 0 }}

- name: F
uses: ./
with:
skip-checkout: ${{ github.event_name == 'pull_request' && 0 || 1 }}
skip-checkout: ${{ github.event_name == 'workflow_dispatch' && 0 || 1 }}

- name: G
uses: ./

- name: H
uses: ./
with:
skip-checkout: ${{ github.event_name == 'pull_request' && 1 || '' }}
skip-checkout: ${{ github.event_name == 'workflow_dispatch' && 1 || '' }}

0 comments on commit df61ba3

Please sign in to comment.