Skip to content

Commit 656d9ea

Browse files
committed
runner test
1 parent 61c6671 commit 656d9ea

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/tries.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,20 @@ jobs:
99
run: echo "random_number=$(($RANDOM % 2))" >> $GITHUB_OUTPUT
1010
- name: Pass or fail
1111
run: |
12-
if [[ ${{ steps.generate_number.outputs.random_number }} == 0 ]]; then exit 0; else exit 1; fi
12+
if [[ ${{ steps.generate_number.outputs.random_number }} == 0 ]]; then exit 0; else exit 1; fi
13+
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Build with logs
19+
run: |
20+
mkdir ${{ runner.temp }}/build_logs
21+
echo "Logs from building" > ${{ runner.temp }}/build_logs/build.logs
22+
exit 1
23+
- name: Upload logs on fail
24+
if: ${{ failure() }}
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: Build failure logs
28+
path: ${{ runner.temp }}/build_logs

0 commit comments

Comments
 (0)