Skip to content

Commit

Permalink
debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ramin committed Nov 22, 2023
1 parent a741462 commit 37317ad
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,27 @@ on:
jobs:
setup:
runs-on: ubuntu-latest
env:
GO_VERSION: 1.21
outputs:
go-version: ${{ steps.set-vars.outputs.go-version }}
go-version: ${{ steps.read-go-version.outputs.go-version }}

steps:
- id: set-vars
- name: Checkout code
uses: actions/checkout@v4

- name: debug .go-version file
run: cat .go-version

- name: Read .go-version file
id: read-go-version
run: |
echo "go-version=${{env.GO_VERSION}}" >> "$GITHUB_OUTPUT"
echo "go-version=$(cat .go-version)" >> $GITHUB_ENV
debug:
needs: [setup]
runs-on: ubuntu-latest
steps:
- run: |
echo ${{ needs.setup.outputs.go-version }}
go:
needs: setup
uses: ./.github/workflows/go-ci.yml
Expand Down

0 comments on commit 37317ad

Please sign in to comment.