commit e7db622b20330ed79cca41938019bcb8f5a72059
parent 3737cd74fdf6b8f704532e5563d7433860ee54da
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Tue, 10 Oct 2023 19:28:57 +0200
Merge branch 'main' into cleanup-midnightthoughts.space
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml
@@ -17,6 +17,7 @@ jobs:
permissions:
issues: write
pull-requests: write
+ contents: read
needs: linting
if: github.event.issue.pull_request && contains(github.event.comment.body, '/test')
runs-on: ubuntu-latest
@@ -49,20 +50,20 @@ jobs:
# Set output 'plan' to $_plan
echo "::set-output name=plan::${_plan}"
# Set $_sha to the first 7 char of PR head SHA
- _sha="$(echo "${{ github.event.pull_request.head.sha }}" | cut -c 1-7)"
+ _sha="$(echo "${{ steps.comment-branch.outputs.head_sha }}" | cut -c 1-7)"
# Set output 'sha' to $_sha
echo "::set-output name=sha::${_sha}"
- name: Find comment
uses: peter-evans/find-comment@v2.4.0
id: fc
with:
- issue-number: ${{ github.event.pull_request.number }}
+ issue-number: ${{ github.event.issue.number }}
comment-author: github-actions[bot]
body-includes: Automatically generated by octodns-sync
- name: Add or update PR comment
uses: peter-evans/create-or-update-comment@v3.0.2
with:
- issue-number: ${{ github.event.pull_request.number }}
+ issue-number: ${{ github.event.issue.number }}
comment-id: ${{ steps.fc.outputs.comment-id }}
body: |
## OctoDNS Plan for `${{ steps.meta.outputs.sha }}`