it's hard to keep secrets
This commit is contained in:
parent
1eb46126cb
commit
cdb4e24e6a
|
@ -16,11 +16,11 @@ jobs:
|
||||||
- name: Set Token
|
- name: Set Token
|
||||||
run: |
|
run: |
|
||||||
if ! [[ -z "${{ inputs.token }}" ]]; then
|
if ! [[ -z "${{ inputs.token }}" ]]; then
|
||||||
echo "Token was specified"
|
echo "Got token input (is that even possible?)"
|
||||||
echo "TOKEN=${{ inputs.token }}" >> "$GITHUB_ENV"
|
echo "TOKEN=${{ inputs.token }}" >> "$GITHUB_ENV"
|
||||||
else
|
else
|
||||||
echo "Using default token"
|
echo "Using current secret"
|
||||||
echo "TOKEN=${{ github.token }}" >> "$GITHUB_ENV"
|
echo "TOKEN=${{ secrets.MY_REPO_PAT }}" >> "$GITHUB_ENV"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
Loading…
Reference in New Issue