Skip to content

Commit 613098a

Browse files
committed
Using composite
1 parent dce8a92 commit 613098a

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

setup-rerun-vars/action.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ inputs:
66
description: 'Run attempt number'
77
required: true
88

9-
jobs:
10-
check-rerun:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Check if this is a re-run
14-
run: |
15-
if [ "${{ inputs.run_attempt }}" -gt 1 ]; then
16-
echo "This run is a re-run (attempt #${{ inputs.run_attempt }})."
17-
else
18-
echo "This is the first run."
19-
fi
9+
runs:
10+
using: 'composite'
11+
steps:
12+
- name: Check if this is a re-run
13+
shell: bash
14+
run: |
15+
if [ "${{ inputs.run_attempt }}" -gt 1 ]; then
16+
echo "This run is a re-run (attempt #${{ inputs.run_attempt }})."
17+
else
18+
echo "This is the first run."
19+
fi
20+

0 commit comments

Comments
 (0)