Merge pull request #23957 from backstage/rugvip/base-fetch

.github/workflows: fetch base branch to be able to verify release
This commit is contained in:
Patrik Oldsberg
2024-04-03 11:46:23 +02:00
committed by GitHub
+6 -1
View File
@@ -198,9 +198,14 @@ jobs:
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: fetch branch master
- name: fetch master branch
run: git fetch origin master
# Need to fetch the base branch to be able to verify the release
- name: fetch base branch
if: github.event.pull_request.base.ref != 'master'
run: git fetch origin ${{ github.event.pull_request.base.ref }}
- name: use node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with: