Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
jaytaph committed Dec 1, 2023
1 parent c9a21e2 commit e95f434
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-author-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
git fetch origin ${{ github.base_ref }}
git fetch origin ${{ github.head_ref }}
sh .github/workflows/check_authors.sh "origin/${{ github.base_ref }}..origin/${{ github.head_ref }}"
echo "::set-output name=result::$?"
echo "author_found=$?" >> $GITHUB_STATE
- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
Expand All @@ -36,7 +36,7 @@ jobs:
# Delete comment when author is in AUTHORS file and we have a comment id
- name: Delete comment
uses: actions/github-script@v3
if: steps.check-author.outputs.result == '0' && steps.fc.outputs.comment-id != ''
if: $author_found == '0' && steps.fc.outputs.comment-id != ''
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand All @@ -49,7 +49,7 @@ jobs:
# Post the comment (or replace it) when a committer is not found in the AUTHORS file
- name: Post comment if not found
uses: peter-evans/create-or-update-comment@v3
if: steps.check-author.outputs.result == '1'
if: $author_found == '1'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down

0 comments on commit e95f434

Please sign in to comment.