diff --git a/.github/workflows/ci-file.yaml b/.github/workflows/ci-file.yaml index ec1933b..5d0cd56 100644 --- a/.github/workflows/ci-file.yaml +++ b/.github/workflows/ci-file.yaml @@ -10,9 +10,6 @@ on: - master - 'release-\d.\d\d' -env: - MY_VAR: ${{ github.event_name == 'push' && 'myvar' || github.ref_name }} - jobs: build: name: Build and push docker image @@ -36,5 +33,7 @@ jobs: cat main/main.go echo "Image pushed to ${{ steps.extract_branch.outputs.image_version }}" echo "Variable is ${{ env.MY_VAR }}" + env: + MY_VAR: ${{ github.event_name == 'push' && 'myvar' || github.ref_name }} # uses: docker/setup-qemu-action@v3