From 2619c17602e94a871a25b12d9ef8a954a3f70bf9 Mon Sep 17 00:00:00 2001 From: Mitja O Date: Thu, 25 Apr 2024 00:55:36 +0200 Subject: [PATCH] fix: use the right env variables in `release-tag` workflow (#569) fix: env variable --- .github/workflows/rt.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rt.yml b/.github/workflows/rt.yml index 91c04fa..027026b 100644 --- a/.github/workflows/rt.yml +++ b/.github/workflows/rt.yml @@ -22,14 +22,16 @@ jobs: if: ${{ github.ref_name == 'master' }} runs-on: ubuntu-latest env: - CHANGES_FILE: CHANGES.rst + CHANGE_FILE: CHANGES.rst EXPECTED_DIFF_COUNT: 1 steps: - uses: actions/checkout@v3 - id: get-version run: | + CHANGE_FILE=${{ env.CHANGE_FILE }} LAST_VERSION=$(grep -m1 -E ' \([0-9]+-[0-9]+-[0-9]+\)$' ${CHANGE_FILE} | awk '{ print $1 }') + echo "👀 Version detected: ${LAST_VERSION}" echo "LAST_VERSION=${LAST_VERSION}" >> "$GITHUB_OUTPUT" - uses: actions/setup-python@v4 @@ -45,7 +47,7 @@ jobs: run: | echo ${{ inputs.dryrun && '💡 Running in dry-run mode' || 'Preparing release...' }} - CHANGE_FILE=${{ env.CHANGES_FILE }} + CHANGE_FILE=${{ env.CHANGE_FILE }} LAST_VERSION=${{ steps.get-version.outputs.LAST_VERSION }} git config user.name github-actions git config user.email github-actions@github.com