actions: context: verify RUN_ID (#951)
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/951 Co-authored-by: Earl Warren <contact@earl-warren.org> Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
parent
95453f8fd8
commit
fea037d403
1 changed files with 9 additions and 0 deletions
|
|
@ -178,6 +178,15 @@ jobs:
|
|||
test "$FORGEJO_RUN_NUMBER" = "${{ forge.RUN_NUMBER }}"
|
||||
test "$FORGEJO_RUN_NUMBER" = "$GITHUB_RUN_NUMBER"
|
||||
|
||||
- name: FORGEJO_RUN_ID
|
||||
run: |
|
||||
set -x
|
||||
echo "$FORGEJO_RUN_ID" | grep -E '^[0-9]+$'
|
||||
test "$FORGEJO_RUN_ID" = "${{ env.FORGEJO_RUN_ID }}"
|
||||
test "$FORGEJO_RUN_ID" = "${{ github.RUN_ID }}"
|
||||
test "$FORGEJO_RUN_ID" = "${{ forge.RUN_ID }}"
|
||||
test "$FORGEJO_RUN_ID" = "$GITHUB_RUN_ID"
|
||||
|
||||
- name: FORGEJO_SERVER_URL
|
||||
shell: bash
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue