Skip to content

Commit 166be82

Browse files
get pr number test
testing
1 parent c27601b commit 166be82

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/add-label.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ jobs:
2323
echo "::set-output name=pr_number::$(cat NUM | tr -dc '[:digit:]')"
2424
notify_failure:
2525
runs-on: ubuntu-latest
26+
needs: ["prepare_jobs"]
2627
env:
2728
PR_NUMBER: ${{ needs.prepare_jobs.outputs.pr_number }}
2829
steps:
2930
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3.0.0
31+
- name: Get PR number
32+
shell: sh
33+
run: |
34+
echo "${{ env.PR_NUMBER }}"
3035
- name: Label
3136
uses: ./.github/actions/fork-result-label
3237
continue-on-error: true
@@ -36,10 +41,15 @@ jobs:
3641

3742
notify_success:
3843
runs-on: ubuntu-latest
44+
needs: ["prepare_jobs"]
3945
env:
4046
PR_NUMBER: ${{ needs.prepare_jobs.outputs.pr_number }}
4147
steps:
4248
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3.0.0
49+
- name: Get PR number
50+
shell: sh
51+
run: |
52+
echo "${{ env.PR_NUMBER }}"
4353
- name: Label
4454
uses: ./.github/actions/fork-result-label
4555
continue-on-error: true

0 commit comments

Comments
 (0)