mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-07-25 08:54:43 +00:00
Merge pull request #254 from 0xFelix/fix-checkout-v7-credentials
fix(ci): set up git credential helper for checkout v7 compatibility
This commit is contained in:
8
.github/workflows/docs.yml
vendored
8
.github/workflows/docs.yml
vendored
@@ -50,6 +50,14 @@ jobs:
|
|||||||
cp -rp ansible_collections \
|
cp -rp ansible_collections \
|
||||||
${{ env.work_dir }}
|
${{ 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
|
- name: Create changelog and documentation
|
||||||
uses: ansible-middleware/collection-docs-action@main
|
uses: ansible-middleware/collection-docs-action@main
|
||||||
with:
|
with:
|
||||||
|
|||||||
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@@ -58,6 +58,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
ansible-galaxy collection build .
|
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
|
- name: Create changelog and documentation
|
||||||
uses: ansible-middleware/collection-docs-action@main
|
uses: ansible-middleware/collection-docs-action@main
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user