mirror of
https://github.com/pypiserver/pypiserver
synced 2024-12-20 13:55:49 +01:00
fix: use the right env variables in release-tag
workflow (#569)
fix: env variable
This commit is contained in:
parent
d5886ae3d5
commit
2619c17602
6
.github/workflows/rt.yml
vendored
6
.github/workflows/rt.yml
vendored
@ -22,14 +22,16 @@ jobs:
|
|||||||
if: ${{ github.ref_name == 'master' }}
|
if: ${{ github.ref_name == 'master' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
CHANGES_FILE: CHANGES.rst
|
CHANGE_FILE: CHANGES.rst
|
||||||
EXPECTED_DIFF_COUNT: 1
|
EXPECTED_DIFF_COUNT: 1
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- id: get-version
|
- id: get-version
|
||||||
run: |
|
run: |
|
||||||
|
CHANGE_FILE=${{ env.CHANGE_FILE }}
|
||||||
LAST_VERSION=$(grep -m1 -E ' \([0-9]+-[0-9]+-[0-9]+\)$' ${CHANGE_FILE} | awk '{ print $1 }')
|
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"
|
echo "LAST_VERSION=${LAST_VERSION}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
@ -45,7 +47,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo ${{ inputs.dryrun && '💡 Running in dry-run mode' || 'Preparing release...' }}
|
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 }}
|
LAST_VERSION=${{ steps.get-version.outputs.LAST_VERSION }}
|
||||||
git config user.name github-actions
|
git config user.name github-actions
|
||||||
git config user.email github-actions@github.com
|
git config user.email github-actions@github.com
|
||||||
|
Loading…
Reference in New Issue
Block a user