File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments