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 ?)"
|
- 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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue