Skip to content

Commit

Permalink
TRY cannot override GITHUB_* env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Nov 7, 2023
1 parent 9b83dad commit 2d91642
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/prepare-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ jobs:
update-release-notes:
name: Update release
runs-on: ubuntu-latest
env:
# fake github tag
GITHUB_REF_NAME: v0.17
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create archive
id: archive
run: |
export GITHUB_REF_NAME=v0.17
TAG="${GITHUB_REF_NAME}"
REPOSITORY_NAME="${GITHUB_REPOSITORY#*/}"
PREFIX="${REPOSITORY_NAME}-${TAG:1}"
Expand All @@ -25,7 +25,7 @@ jobs:
git archive --format=tar.gz --prefix="${PREFIX}/" -o "$ARCHIVE" "${TAG}"
- name: Prepare workspace snippet
run: .github/workflows/workspace_snippet.sh ${{ steps.archive.outputs.tgz }} > release_notes.txt
run: GITHUB_REF_NAME=v0.17 .github/workflows/workspace_snippet.sh ${{ steps.archive.outputs.tgz }} > release_notes.txt
- name: Generate changelog
run: |
printf '\n-----\n\n' >> release_notes.txt
Expand Down

0 comments on commit 2d91642

Please sign in to comment.