TRY cannot override GITHUB_* env variables #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prepare release | |
on: | |
push: | |
jobs: | |
update-release-notes: | |
name: Update release | |
runs-on: ubuntu-latest | |
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}" | |
ARCHIVE="${PREFIX}.tar.gz" | |
echo "tgz=${ARCHIVE}" >> $GITHUB_OUTPUT | |
git archive --format=tar.gz --prefix="${PREFIX}/" -o "$ARCHIVE" "${TAG}" | |
- name: Prepare workspace snippet | |
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 | |
awk -f .github/workflows/changelog.awk CHANGELOG.md >> release_notes.txt | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
draft: true | |
tag_name: 0.17-bzlmod | |
body_path: release_notes.txt | |
fail_on_unmatched_files: true | |
files: ${{ steps.archive.outputs.tgz }} |