We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61c6671 commit 656d9eaCopy full SHA for 656d9ea
.github/workflows/tries.yaml
@@ -9,4 +9,20 @@ jobs:
9
run: echo "random_number=$(($RANDOM % 2))" >> $GITHUB_OUTPUT
10
- name: Pass or fail
11
run: |
12
- if [[ ${{ steps.generate_number.outputs.random_number }} == 0 ]]; then exit 0; else exit 1; fi
+ 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