Skip to content

Commit 85d102d

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

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,29 @@ 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: |
24+
my_secret=${demo_secret:-nothinggg}
25+
echo "demo_secret=${my_secret:-nothing}">>$GITHUB_OUTPUT
2326
- name: Extract Go Version
2427
id: go-version
2528
run: |
2629
GO_VERSION=$(grep '^go ' go.mod | awk '{ print $2}')
2730
echo "Extracted Go version: $GO_VERSION"
2831
echo "version=${GO_VERSION:-1.20}" >> $GITHUB_OUTPUT
29-
32+
- name: temp
33+
id: temp
34+
env:
35+
tempu: "demo"
36+
run: |
37+
t:=${tempu:-no}
38+
echo "tempu=$t" >> $GITHUB_OUTPUT
3039
build:
3140
runs-on: ubuntu-latest
3241
needs: config
@@ -39,8 +48,9 @@ jobs:
3948
- name: Echo Secret
4049
env:
4150
demo_secret: ${{ needs.config.outputs.branch }}
51+
temp: ${{ needs.config.outputs.temp }}
4252
run: |
43-
echo "printing $demo_secret"
53+
echo "printing $demo_secret and $temp"
4454
- name: Build
4555
run: go build -v ./...
4656

0 commit comments

Comments
 (0)