Skip to content

Commit 46baa36

Browse files
committed
fix: 🐛 corrected output references for pozetroninc/github-action-get-latest-release action
1 parent da6b849 commit 46baa36

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/create-linked-release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,17 @@ jobs:
2525
# This variable is REQUIRED for the workflow to function.
2626
repository: ${{ vars.UPSTREAM_REPO }}
2727
excludes: prerelease, draft
28+
token: ${{ secrets.GITHUB_TOKEN }}
2829

2930
- name: Validate Release Tag Format
3031
id: validate_tag
3132
env:
3233
# Use the repo variable for the regex if it exists, otherwise use the default.
3334
VERSION_REGEX: ${{ vars.VERSION_REGEX || '^v?[0-9]+\.[0-9]+\.[0-9]+$' }}
3435
run: |
35-
TAG_NAME="${{ steps.get_release_b.outputs.tag }}"
36+
TAG_NAME="${{ steps.get_release_b.outputs.release }}"
37+
38+
echo "Validating release tag format for latest release from upstream repository: $TAG_NAME"
3639
if [[ -z "$TAG_NAME" ]]; then
3740
echo "No valid release found from upstream repository. Exiting."
3841
echo "is_valid=false" >> "$GITHUB_OUTPUT"
@@ -58,7 +61,7 @@ jobs:
5861
id: check_tag
5962
if: steps.validate_tag.outputs.is_valid == 'true'
6063
env:
61-
RELEASE_TAG: ${{ steps.get_release_b.outputs.tag }}
64+
RELEASE_TAG: ${{ steps.get_release_b.outputs.release }}
6265
run: |
6366
if git tag --list | grep -q "^${RELEASE_TAG}$"; then
6467
echo "Tag '$RELEASE_TAG' already exists. No action needed."
@@ -72,7 +75,7 @@ jobs:
7275
# This step only runs if the tag is valid AND new.
7376
if: steps.check_tag.outputs.create_tag == 'true'
7477
env:
75-
RELEASE_TAG: ${{ steps.get_release_b.outputs.tag }}
78+
RELEASE_TAG: ${{ steps.get_release_b.outputs.release }}
7679
run: |
7780
RELEASE_TAG="v${RELEASE_TAG#v}" # Ensure the tag starts with 'v'
7881

0 commit comments

Comments
 (0)