This commit is contained in:
parent
769852640a
commit
45a6858b7b
@ -15,6 +15,8 @@ jobs:
|
|||||||
|
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: https://${{ secrets.GITHUB_TOKEN }}:@git.offline-twitter.com/wispem/shellcheckout@${{ github.ref }}
|
uses: https://${{ secrets.GITHUB_TOKEN }}:@git.offline-twitter.com/wispem/shellcheckout@${{ github.ref }}
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: wc -l
|
- name: wc -l
|
||||||
run: wc -l action.yml
|
run: wc -l action.yml
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
name: "Shell Checkout"
|
name: "Shell Checkout"
|
||||||
description: "Checkout a repo using shell"
|
description: "Checkout a repo using shell"
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
github-token:
|
||||||
|
description: GitHub token
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
@ -11,6 +14,8 @@ runs:
|
|||||||
mkdir -p /tmp/newdir && cd /tmp/newdir
|
mkdir -p /tmp/newdir && cd /tmp/newdir
|
||||||
git init
|
git init
|
||||||
git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY"
|
git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY"
|
||||||
|
echo "github-token: ${{ inputs.github-token }}"
|
||||||
|
echo "token: ${token}"
|
||||||
basicauth=$(echo -n "x-access-token:${token}" | base64)
|
basicauth=$(echo -n "x-access-token:${token}" | base64)
|
||||||
git config --local http.$GITHUB_SERVER_URL.extraheader "AUTHORIZATION: basic ${basicauth}"
|
git config --local http.$GITHUB_SERVER_URL.extraheader "AUTHORIZATION: basic ${basicauth}"
|
||||||
GIT_TRACE=1 GIT_CURL_VERBOSE=1 git fetch origin "$GITHUB_REF"
|
GIT_TRACE=1 GIT_CURL_VERBOSE=1 git fetch origin "$GITHUB_REF"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user