Skip to content

Commit

Permalink
Fix syntax (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham authored Oct 26, 2023
1 parent db71a45 commit 2acd286
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ jobs:
&& github.event.issue.state == 'open'
&& contains(github.event.comment.body, '!test')
&& (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER')
steps:
- uses: xt0rted/pull-request-comment-branch@v2
id: comment-branch
- uses: actions/checkout@v4
- name: Checkout PR branch
run: gh pr checkout ${{ github.event.issue.number }}
env:
# TODO: Remove if not needed
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check private key exists
# Potential alternative: https://github.com/myrotvorets/set-commit-status-action
uses: actions/github-script@v6
with:
script: |
if ("$PRIVATE_KEY" == "") {
core.setFailed('Failed to access PRIVATE_KEY secret')
}
steps:
- uses: xt0rted/pull-request-comment-branch@v2
id: comment-branch
- uses: actions/checkout@v4
- name: Checkout PR branch
run: gh pr checkout ${{ github.event.issue.number }}
env:
# TODO: Remove if not needed
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check private key exists
# Potential alternative: https://github.com/myrotvorets/set-commit-status-action
uses: actions/github-script@v6
with:
script: |
if ("$PRIVATE_KEY" == "") {
core.setFailed('Failed to access PRIVATE_KEY secret')
}

0 comments on commit 2acd286

Please sign in to comment.