Skip to content

Commit efe42b6

Browse files
committed
fixed comment on wrong PR + CI secrets
1 parent 71b2226 commit efe42b6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/update-timestamps.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ jobs:
134134
run_ci:
135135
needs: bump_timestamps
136136
uses: ./.github/workflows/stackhpc.yml
137+
secrets: inherit
137138
with:
138139
target_branch: auto/bump-timestamps
139140

@@ -146,11 +147,16 @@ jobs:
146147
steps:
147148
- name: Checkout branch
148149
uses: actions/checkout@v3
149-
with:
150-
ref: auto/bump-timestamps
150+
151+
- name: Get created PR number
152+
id: number_check
153+
run: |
154+
PR_NUMBER=$(gh pr list --head auto/bump-timestamps --state open --json number --jq .[0].number)
155+
echo "pr_number=$PR_NUMBER" >> "$GITHUB_OUTPUT"
151156
152157
- name: Comment CI status
153158
uses: thollander/actions-comment-pull-request@v1
154159
with:
155160
message: 'CI ${{ needs.run_ci.result }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
156161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
162+
pr_number: steps.number_check.outputs.pr_number

0 commit comments

Comments
 (0)