Skip to content

Commit

Permalink
Update release_pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vinmassaro authored Feb 21, 2024
1 parent e9ad621 commit 0326d96
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
if: ${{ github.event.action != 'synchronize' && github.event.action != 'closed' }}
outputs:
NEXT_VERSION: ${{ steps.get_release_number.outputs.next_version }}
RELEASE_BRANCH: ${{ steps.get_release_number.outputs.next_version }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -105,7 +106,10 @@ jobs:
release_branch="${next_version//.}"
fi
fi
# Set outputs for next steps when running from workflow_dispatch.
echo next_version="$next_version" >> "$GITHUB_OUTPUT"
echo release_branch="$release_branch" >> "$GITHUB_OUTPUT"
# Set release branch as a variable for access.
gh variable set RELEASE_BRANCH --body "$release_branch"
Expand All @@ -125,7 +129,7 @@ jobs:
outputs:
PR_NUMBER: ${{ steps.create_pull_request.outputs.PR_NUMBER }}
env:
RELEASE_BRANCH: ${{ vars.RELEASE_BRANCH }}
RELEASE_BRANCH: ${{ needs.get_next_release_version.outputs.RELEASE_BRANCH }} || ${{ vars.RELEASE_BRANCH }}
NEXT_VERSION: ${{ needs.get_next_release_version.outputs.NEXT_VERSION }}
runs-on: ubuntu-latest
steps:
Expand All @@ -141,7 +145,7 @@ jobs:
runs-on: ubuntu-latest
if: ${{ always() && github.event.action != 'closed' }}
env:
RELEASE_BRANCH: ${{ vars.RELEASE_BRANCH }}
RELEASE_BRANCH: ${{ needs.get_next_release_version.outputs.RELEASE_BRANCH }} || ${{ vars.RELEASE_BRANCH }}
PR_NUMBER: ${{ needs.create_pull_request.outputs.PR_NUMBER }}
RELEASE_SITES_DEPLOYED: ${{ vars.RELEASE_SITES_DEPLOYED }}
steps:
Expand Down

0 comments on commit 0326d96

Please sign in to comment.