commit 3317cdc2dafbef7b18ef5c752217a8e1e7203e92
parent 45f42d9e7283bd51530311e3b099ba07cec00b23
Author: MTRNord <mtrnord1@gmail.com>
Date: Tue, 10 Oct 2023 19:28:37 +0200
Fix vars
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 }}`