Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Fix release tag formatting (#3788)

sarayourfriend18288bc44f97
diff --git a/.github/workflows/draft_releases.yml b/.github/workflows/draft_releases.yml
index 2061c6e23..ed1c60707 100644
--- a/.github/workflows/draft_releases.yml
+++ b/.github/workflows/draft_releases.yml
@@ -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
@@ -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:
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index b08c54a5a..e2cbd82c3 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -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
{