test github...

This commit is contained in:
Chl 2024-08-30 02:48:59 +02:00
parent 754e09e0ee
commit da2545fd6c
2 changed files with 4 additions and 0 deletions

View file

@ -22,6 +22,7 @@ jobs:
- name: "Github requires checkout for 'uses: ./' (or we could hard write the repository's URL ?)"
run: |
git init
test -z "$GITHUB_TOKEN" && GITHUB_TOKEN="${{ github.token }}"
MY_AUTHENTICATED_URL="$( echo "$GITHUB_SERVER_URL" | sed "s#^\(https\?://\)#\1$GITHUB_TOKEN\@#" )"
git remote add origin "$MY_AUTHENTICATED_URL"/"$GITHUB_REPOSITORY"
# Little and optional speed optimization