Skip to content

Commit 87159fc

Browse files
debug
Signed-off-by: souravbiswassanto <[email protected]>
1 parent d303dfd commit 87159fc

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,25 @@ jobs:
1313
outputs:
1414
branch: ${{ steps.secret-name.outputs.demo_secret }}
1515
version: ${{ steps.go-version.outputs.version }}
16+
temp: ${{ steps.temp.outputs.version }}
1617
steps:
1718
- uses: actions/checkout@v4
1819
- name: demo secret
1920
id: secret-name
2021
env:
2122
demo_secret: ${{ secrets.MY_DEMO_SECRET }}
22-
run: echo "demo_secret=${demo_secret:-nothing}">>$GITHUB_OUTPUT
23+
run: echo "demo_secret=${demo_secret:-nothing}">$GITHUB_OUTPUT
2324
- name: Extract Go Version
2425
id: go-version
2526
run: |
2627
GO_VERSION=$(grep '^go ' go.mod | awk '{ print $2}')
2728
echo "Extracted Go version: $GO_VERSION"
28-
echo "version=${GO_VERSION:-1.20}" >> $GITHUB_OUTPUT
29-
29+
echo "version=${GO_VERSION:-1.20}" > $GITHUB_OUTPUT
30+
- name: temp
31+
id: temp
32+
env:
33+
tempu: "demo"
34+
run: echo "tempu=$tempu" > $GITHUB_OUTPUT
3035
build:
3136
runs-on: ubuntu-latest
3237
needs: config
@@ -39,8 +44,9 @@ jobs:
3944
- name: Echo Secret
4045
env:
4146
demo_secret: ${{ needs.config.outputs.branch }}
47+
temp: ${{ needs.config.outputs.temp }}
4248
run: |
43-
echo "printing $demo_secret"
49+
echo "printing $demo_secret and $temp"
4450
- name: Build
4551
run: go build -v ./...
4652

0 commit comments

Comments
 (0)