actions: context: add github.

This commit is contained in:
Earl Warren 2024-01-09 23:02:33 +01:00
parent 9d4becce06
commit 3a47977c68
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 43 additions and 24 deletions

View file

@ -11,6 +11,7 @@ runs:
set -x
test "$GITHUB_ACTION_REPOSITORY" = root/action-for-context
test "$GITHUB_ACTION_REPOSITORY" = "${{ env.GITHUB_ACTION_REPOSITORY }}"
test "$GITHUB_ACTION_REPOSITORY" = "${{ github.ACTION_REPOSITORY }}"
touch /srv/example/example-context/GITHUB_ACTION_REPOSITORY
- name: GITHUB_ACTION_PATH
@ -18,4 +19,5 @@ runs:
run: |
set -x
[[ "$GITHUB_ACTION_PATH" =~ action-for-context@main$ ]]
test "$GITHUB_ACTION_PATH" = "${{ github.ACTION_PATH }}"
touch /srv/example/example-context/GITHUB_ACTION_PATH