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