Try to fix base branch in Publish Release workflow *again* (#5340)

This commit is contained in:
jack1142 2021-11-02 13:02:01 +01:00 committed by GitHub
parent 483ef36d1b
commit f071ec09e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,9 +84,15 @@ jobs:
name: Update Red version number to dev name: Update Red version number to dev
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Get base branch
env:
TAG_BASE_BRANCH: ${{ github.event.base_ref }}
run: |
echo "BASE_BRANCH=${TAG_BASE_BRANCH#'refs/heads/'}" >> $GITHUB_ENV
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
ref: ${{ github.event.base_ref }} ref: ${{ env.BASE_BRANCH }}
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
@ -128,7 +134,7 @@ jobs:
branch: "automated/pr_bumps/${{ steps.bump_version_dev.outputs.new_version }}" branch: "automated/pr_bumps/${{ steps.bump_version_dev.outputs.new_version }}"
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
milestone: ${{ steps.get_milestone_number.outputs.result }} milestone: ${{ steps.get_milestone_number.outputs.result }}
base: ${{ github.event.base_ref }} base: ${{ env.BASE_BRANCH }}
- name: Close and reopen the PR with different token to trigger CI - name: Close and reopen the PR with different token to trigger CI
uses: actions/github-script@v3 uses: actions/github-script@v3