From 37317adc8db7c4a663daf99e5befd81600abf7f7 Mon Sep 17 00:00:00 2001 From: ramin Date: Wed, 22 Nov 2023 12:30:54 +0000 Subject: [PATCH] debug ci --- .github/workflows/ci.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7607cd6..2a51f44 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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