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

View file

@ -36,6 +36,9 @@ runs:
# Some optional help for debugging. # Some optional help for debugging.
set -ex set -ex
# Compatibility layer Forgejo/Gitea vs Github
test -z "$GITHUB_TOKEN" && GITHUB_TOKEN="${{ github.token }}"
# Compress the input paths into a zip archive # Compress the input paths into a zip archive
# (note: busybox' mktemp doesn't have the --suffix option) # (note: busybox' mktemp doesn't have the --suffix option)
MYUPLOAD="$( mktemp -u ).zip" MYUPLOAD="$( mktemp -u ).zip"