Skip to content

Commit

Permalink
Fix release tag formatting (#3788)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend authored Feb 12, 2024
1 parent 33b421f commit 18288bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/draft_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
{
echo "date=$formatted_date";
echo "git-tag=${{ env.APP_NAME }}-$formatted_date";
echo "git-tag=${{ matrix.app }}-$formatted_date";
} >> "$GITHUB_OUTPUT"
# Each time this runs, it should replace the previous drafted release matching the tag prefix set in the release drafter config
Expand All @@ -49,8 +49,8 @@ jobs:
with:
config-name: release-drafter-${{ matrix.app }}.yml
version: ${{ steps.tag.outputs.date }}
tag: ${{ matrix.app }}-${{ steps.tag.outputs.git-tag }}
name: ${{ matrix.app }}-${{ steps.tag.outputs.git-tag }}
tag: ${{ steps.tag.outputs.git-tag }}
name: ${{ steps.tag.outputs.git-tag }}
draft: true
commitish: main
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Calculate tag name
id: tag
run: |
release_date=$(echo '${{ github.ref_name }}' | sed 's/${{ env.APP_NAME }}//')
release_date=$(echo '${{ github.ref_name }}' | sed 's/${{ env.APP_NAME }}-//')
# Generate `rel-` prefixed image tag to avoid duplicated app name between image and tag
{
Expand Down

0 comments on commit 18288bc

Please sign in to comment.