diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 846bd96..4a76a57 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7002b5..827e578 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: