1
0
mirror of synced 2026-01-01 18:05:46 -05:00

Try using actions/checkout's persist-credentials input instead of manually changing the local git config

This commit is contained in:
James M. Greene
2020-11-04 11:19:46 -06:00
parent 089e99b96c
commit 2be96edf73

View File

@@ -37,6 +37,9 @@ jobs:
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
name: Check out repo
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
with:
# Enables cloning the Early Access repo later with the relevant PAT
persist-credentials: 'false'
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
name: Setup node
@@ -109,10 +112,6 @@ jobs:
name: Install dependencies
run: npm ci
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' && github.repository == 'github/docs-internal' }}
name: Clear out the Actions git authorization extraHeader config
run: git config --local "http.https://github.com/.extraheader" ""
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' && github.repository == 'github/docs-internal' }}
name: Clone early access
run: npm run heroku-postbuild