Skip to content

Commit 057c9a4

Browse files
authored
Create jq-test.yaml
1 parent 4c11bbc commit 057c9a4

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/jq-test.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
name: jq Test
3+
4+
on:
5+
workflow_dispatch
6+
7+
env:
8+
TAG_TEST: 1.0.2
9+
10+
11+
jobs:
12+
step1:
13+
runs-on: ubuntu-22.04
14+
15+
outputs:
16+
dotnet_version: ${{ steps.prep.outputs.dotnet_version }}
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Prepare
22+
id: prep
23+
run: |
24+
DOTNET_VERSION=`curl -s https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/8.0/releases.json | jq -r '.["latest-release"]'`
25+
echo ::set-output name=tags::${{ env.TAG_TEST }}
26+
echo "dotnet_version=${DOTNET_VERSION}" >> $GITHUB_OUTPUT
27+
step2:
28+
runs-on: ubuntu-22.04
29+
needs: build
30+
31+
steps:
32+
- uses: actions/checkout@v4
33+
34+
- name: Test variable from other job
35+
run: |
36+
echo ${{needs.step1.outputs.dotnet_version}}
37+
38+

0 commit comments

Comments
 (0)