mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-11-21 14:48:37 +00:00
fix(ci): set up git credential helper for checkout v7 compatibility
actions/checkout v7 changed credential persistence from http.extraheader to includeIf.gitdir-scoped config files. The collection-docs-action does not pick up the new credential format, breaking git push to gh-pages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
490777f2b8
commit
38a2548199
@@ -50,6 +50,14 @@ jobs:
|
||||
cp -rp ansible_collections \
|
||||
${{ env.work_dir }}
|
||||
|
||||
- name: Set up git credentials for gh-pages push
|
||||
run: |
|
||||
cd ${{ env.collection_dir }}
|
||||
git config credential.helper \
|
||||
'!f() { echo "username=x-access-token"; echo "password=${GITHUB_TOKEN}"; }; f'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Create changelog and documentation
|
||||
uses: ansible-middleware/collection-docs-action@main
|
||||
with:
|
||||
|
||||
@@ -58,6 +58,13 @@ jobs:
|
||||
run: |
|
||||
ansible-galaxy collection build .
|
||||
|
||||
- name: Set up git credentials
|
||||
run: |
|
||||
git config credential.helper \
|
||||
'!f() { echo "username=x-access-token"; echo "password=${GITHUB_TOKEN}"; }; f'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Create changelog and documentation
|
||||
uses: ansible-middleware/collection-docs-action@main
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user