We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b3960f commit 31f74deCopy full SHA for 31f74de
.github/workflows/1.yaml
@@ -0,0 +1,28 @@
1
+name: First Workflow
2
+
3
+on:
4
+ workflow_dispatch:
5
6
+jobs:
7
+ job1:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - name: Set environment variable
11
+ run: echo "MY_VARIABLE=Hello from job1" >> $GITHUB_ENV
12
13
+ - name: Echo phrase for job1
14
+ run: echo "This is job1"
15
16
+ job2:
17
18
+ needs: job1
19
20
+ - name: Echo phrase for job2
21
+ run: echo "This is job2 and MY_VARIABLE is ${{ needs.job1.outputs.MY_VARIABLE }}"
22
+ env:
23
+ MY_VARIABLE: ${{ needs.job1.outputs.MY_VARIABLE }}
24
+ - name: Cowsays
25
+ uses: mscoutermarsh/cowsays-action@master
26
+ with:
27
+ text: 'Ready for prod--hsip it! and MY_VARIABLE is ${{ needs.job1.outputs.MY_VARIABLE }}'
28
+ color: 'magenta'
0 commit comments