Skip to content

Commit dea88f1

Browse files
authored
Fix reusable workflow reference (#539)
* Fix reusable workflow reference * ensure comment call specifies repository Signed-off-by: Jose R. Gonzalez <[email protected]>
1 parent 2646b8e commit dea88f1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/notify-need-ok-to-test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ jobs:
1414
pull-requests: write
1515
steps:
1616
- run: |
17-
gh pr comment "${PR_NUMBER}" --body "${COMMENT_BODY}"
17+
gh pr comment --repo "${REPOSITORY}" "${PR_NUMBER}" --body "${COMMENT_BODY}"
1818
env:
1919
PR_NUMBER: ${{ github.event.pull_request.number }}
2020
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
REPOSITORY: ${{ github.repository }}
2122
COMMENT_BODY: |
2223
Thanks for your pull request!
2324

.github/workflows/pr-functional-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
run-functional-tests:
8080
needs: [check-ok-to-test]
8181
if: needs.check-ok-to-test.outputs.is-ok-to-test == 'true'
82-
uses: .github/workflows/functional-tests.yaml
82+
uses: ./.github/workflows/functional-tests.yaml
8383
with:
8484
checkout-repository: ${{ needs.check-ok-to-test.outputs.target-repo }}
8585
checkout-ref: ${{ needs.check-ok-to-test.outputs.target-sha }}

0 commit comments

Comments
 (0)