Implemented commit signing for docs action #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Docs | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'fastlane/**/*' | |
- 'scripts/generate-readme.sh' | |
- '.github/workflows/docs.yml' | |
jobs: | |
build: | |
permissions: | |
id-token: write # Enable OIDC | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: chainguard-dev/actions/setup-gitsign@main | |
- name: Generate Readme | |
run: bash ${GITHUB_WORKSPACE}/scripts/generate-readme.sh | |
- name: Commit & Push | |
shell: bash | |
run: | | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions[bot]" | |
git commit --allow-empty --message="Overwritten by Github Actions" | |
git push --force |