Skip to content

Commit

Permalink
fix the secret pass and add debug
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Ribizel <[email protected]>
  • Loading branch information
yhmtsai and upsj committed Nov 28, 2023
1 parent dba81a2 commit be2b564
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/bot-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ API_HEADER="Accept: application/vnd.github.v3+json"
AUTH_HEADER="Authorization: token $GITHUB_TOKEN"

api_get() {
curl -X GET -s -H "${AUTH_HEADER}" -H "${API_HEADER}" "$1"
if [[ "$RUNNER_DEBUG" == "1" ]]; then
curl -X GET -s -H "${AUTH_HEADER}" -H "${API_HEADER}" "$1" > $RUNNER_TEMP/output.json
cat $RUNNER_TEMP/output.json 1>&2
cat $RUNNER_TEMP/output.json
else
curl -X GET -s -H "${AUTH_HEADER}" -H "${API_HEADER}" "$1"
fi
}

api_post() {
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/bot-pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
name: check-format
if: github.event.issue.pull_request != '' && github.event.comment.body == 'check-format!' && (github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER')
uses: ./.github/workflows/check-formatting.yml
secrets: inherit

format:
name: format
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/bot-pr-updated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
check-format:
if: github.event.pull_request.author_association == 'COLLABORATOR' || github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'OWNER'
uses: ./.github/workflows/check-formatting.yml
secrets: inherit

abidiff:
runs-on: ubuntu-latest
Expand Down

0 comments on commit be2b564

Please sign in to comment.