test github...
This commit is contained in:
parent
754e09e0ee
commit
da2545fd6c
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -36,6 +36,9 @@ runs:
|
|||
# Some optional help for debugging.
|
||||
set -ex
|
||||
|
||||
# Compatibility layer Forgejo/Gitea vs Github
|
||||
test -z "$GITHUB_TOKEN" && GITHUB_TOKEN="${{ github.token }}"
|
||||
|
||||
# Compress the input paths into a zip archive
|
||||
# (note: busybox' mktemp doesn't have the --suffix option)
|
||||
MYUPLOAD="$( mktemp -u ).zip"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue