CI: set dry-run if release/dry-run label is set on release-comms.yml and set latest on github release if latest is set (#91089)

set dry-run and set latest on github release
This commit is contained in:
Kevin Minehart
2024-07-26 18:14:36 -05:00
committed by GitHub
parent a1f0b599a7
commit 4e84234424
+2 -1
View File
@@ -39,7 +39,7 @@ jobs:
- if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') }}
run: |
echo "VERSION=$(echo ${{ github.head_ref }} | sed -e 's/release\/.*\///g')" >> $GITHUB_ENV
echo "DRY_RUN=true" >> $GITHUB_ENV
echo "DRY_RUN=${{ contains(github.event.pull_request.labels.*.name, 'release/dry-run') }}" >> $GITHUB_ENV
echo "LATEST=${{ contains(github.event.pull_request.labels.*.name, 'release/latest') }}" >> $GITHUB_ENV
- id: output
run: |
@@ -68,6 +68,7 @@ jobs:
with:
version: ${{ needs.setup.outputs.version }}
dry_run: ${{ needs.setup.outputs.dry_run == 'true' }}
latest: ${{ needs.setup.outputs.latest }}
post_on_slack:
needs: setup
runs-on: ubuntu-latest