Skip to content

Commit

Permalink
New fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nkononov committed Mar 21, 2024
1 parent 771d70f commit 79b6b47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci-file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:

- name: Extract branch name
shell: bash
if: contains(github.ref, "release-")
run: |
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
version_digits=$(echo ${branch} | tr -d -c 0-9)
Expand All @@ -34,6 +35,6 @@ jobs:
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 }}
MY_VAR: ${{ github.ref == 'ref/head/master' && 'latest' || steps.extract_branch.outputs.image_version }}

# uses: docker/setup-qemu-action@v3

0 comments on commit 79b6b47

Please sign in to comment.