Merge pull request #14953 from backstage/rugvip/basehead

workflows/automate_merge_message: fetch both head and base
This commit is contained in:
Patrik Oldsberg
2022-11-30 13:38:13 +01:00
committed by GitHub
+2 -2
View File
@@ -27,8 +27,8 @@ jobs:
with:
ref: '${{ github.event.pull_request.merge_commit_sha }}'
- name: fetch base
run: git fetch --depth 1 origin ${{ github.event.pull_request.base.sha }}
- name: fetch head & base
run: git fetch --depth 1 origin ${{ github.event.pull_request.head.sha }} ${{ github.event.pull_request.base.sha }}
# We avoid using the in-source script since this workflow has elevated permissions that we don't want to expose
- name: Generate Message