actions: use the forgejo context instead of forge and test backward compatibility (#1034)
Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/1034 Reviewed-by: Mathieu Fenniak <mfenniak@noreply.code.forgejo.org> Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Co-authored-by: Earl Warren <contact@earl-warren.org> Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
parent
7f6f69c80f
commit
14d2748a33
5 changed files with 28 additions and 8 deletions
|
|
@ -13,6 +13,7 @@ runs:
|
|||
test "$FORGEJO_ACTION_REPOSITORY" = "${{ env.FORGEJO_ACTION_REPOSITORY }}"
|
||||
test "$FORGEJO_ACTION_REPOSITORY" = "${{ github.ACTION_REPOSITORY }}"
|
||||
test "$FORGEJO_ACTION_REPOSITORY" = "${{ forge.ACTION_REPOSITORY }}"
|
||||
test "$FORGEJO_ACTION_REPOSITORY" = "${{ forgejo.ACTION_REPOSITORY }}"
|
||||
test "$FORGEJO_ACTION_REPOSITORY" = "$GITHUB_ACTION_REPOSITORY"
|
||||
touch /srv/example/example-context/FORGEJO_ACTION_REPOSITORY
|
||||
|
||||
|
|
@ -26,5 +27,6 @@ runs:
|
|||
[[ "$FORGEJO_ACTION_PATH" =~ action-for-context@main$ ]] || [[ "$FORGEJO_ACTION_PATH" =~ /[0-9a-f]{2}/[0-9a-f]{62}$ ]]
|
||||
test "$FORGEJO_ACTION_PATH" = "${{ github.ACTION_PATH }}"
|
||||
test "$FORGEJO_ACTION_PATH" = "${{ forge.ACTION_PATH }}"
|
||||
test "$FORGEJO_ACTION_PATH" = "${{ forgejo.ACTION_PATH }}"
|
||||
test "$FORGEJO_ACTION_PATH" = "$GITHUB_ACTION_PATH"
|
||||
touch /srv/example/example-context/FORGEJO_ACTION_PATH
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue