1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-10-24 20:35:40 +00:00

fix(ci): private repo auth, for real this time (#510)

This commit is contained in:
Hazel 2024-04-24 23:10:17 +01:00 committed by GitHub
parent bf9732f85e
commit 0cb206cc52
5 changed files with 44 additions and 41 deletions

View file

@ -71,14 +71,18 @@ runs:
path: .haxelib
key: haxe-hmm-${{ runner.os }}-${{ hashFiles('**/hmm.json') }}
- if: ${{ steps.cache-hmm.outputs.cache-hit != 'true' }}
name: Prep git for dependency install
uses: gacts/run-and-post-run@v1
with:
run: git config --global 'url.https://x-access-token:${{ inputs.gh-token }}@github.com/.insteadOf' https://github.com/
post: git config --global --unset 'url.https://x-access-token:${{ inputs.gh-token }}@github.com/.insteadOf'
- if: ${{ steps.cache-hmm.outputs.cache-hit != 'true' }}
name: Install dependencies
shell: bash
run: |
git config --global --unset 'url.https://x-access-token:${{ inputs.gh-token }}@github.com/.insteadOf' || true
git config --global 'url.https://x-access-token:${{ inputs.gh-token }}@github.com/.insteadOf' https://github.com/
haxelib --global run hmm install -q
git config --global --unset 'url.https://x-access-token:${{ inputs.gh-token }}@github.com/.insteadOf'
echo "TIMER_DONE=$(date +%s)" >> "$GITHUB_ENV"
# by default use a shared hxcpp cache

View file

@ -39,6 +39,7 @@ jobs:
with:
submodules: 'recursive'
token: ${{ steps.app_token.outputs.token }}
persist-credentials: false
- name: Setup build environment
uses: ./.github/actions/setup-haxe

View file

@ -71,8 +71,6 @@ RUN <<EOF
cat <<EOC >> /etc/gitconfig
[safe]
directory = *
[credential]
helper = cache
EOC
ssh-keyscan -t rsa,ecdsa,ed25519 github.com >> /etc/ssh/ssh_known_hosts