Skip to content

Commit 3c2fec3

Browse files
committed
ci: fix tag name not formatted right once again
1 parent 5b8676f commit 3c2fec3

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/package.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,17 @@ jobs:
5151
5252
git config --global user.name "github-actions[bot]"
5353
git config --global user.email "username@users.noreply.github.com"
54+
- name: fix tag format
55+
id: tag
56+
run: |
57+
echo "sha=$(echo "${{ steps.push.outputs.digest }}" | sed 's/sha256:/sha256-/g')" >> $GITHUB_OUTPUT
5458
- name: Update tag in values.yaml
5559
run: |
5660
57-
export sha=$(echo "${{ steps.push.outputs.digest }}" | sed 's/sha256:/sha256-/g')
58-
python -m yq -Y --indentless --in-place '.image.tag = "$sha"' values.yml
61+
python -m yq -Y --indentless --in-place '.image.tag = "${{ steps.tag.outputs.sha }}"' values.yml
5962
6063
git add values.yml
61-
git commit -m "Update image tag to ${{ steps.push.outputs.digest }}"
64+
git commit -m "Update image tag to ${{ steps.tag.outputs.sha }}"
6265
git push origin main
6366
6467
- name: Generate artifact attestation

0 commit comments

Comments
 (0)