-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 925 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: main.yml
on:
workflow_dispatch:
jobs:
job_1:
runs-on: ubuntu-latest
steps:
- run: "echo Job: ${{ github.job }}"
job_2:
runs-on: ubuntu-latest
needs: job_1
steps:
- run: "echo Job: ${{ github.job }}"
job_3:
runs-on: ubuntu-latest
needs: job_1
steps:
- run: "echo Job: ${{ github.job }}"
job_4:
runs-on: ubuntu-latest
needs:
- job_2
- job_3
steps:
- run: |
echo Job: ${{ github.job }}
generate-a-secret-output:
runs-on: ubuntu-latest
steps:
- id: sets-a-secret
name: Generate, mask and output a secret
run: |
the_secret=$((RANDOM))
echo "::add-mask::$the_secret"
echo "secret-number=$the_secret" >> "$GITHUB_OUTPUT"
- name: Use the secret output
run: |
echo "the secret number is ${{ steps.sets-a-secret.outputs.secret-number }}"