build(deps): bump golangci/golangci-lint-action from 3 to 4 (#73) #39
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: Stitch README.md | |
on: | |
push: | |
branches: [main] | |
# Change the event to pull_request_target | |
# so that it runs in the context of the base repository. | |
pull_request_target: | |
jobs: | |
stitchmd: | |
name: ${{ github.event_name == 'pull_request_target' && 'Update' || 'Check' }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.head_ref }} | |
- name: Check or update README | |
uses: abhinav/stitchmd-action@v1 | |
with: | |
mode: ${{ github.event_name == 'pull_request_target' && 'write' || 'check' }} | |
summary: doc/README.md | |
output: README.md | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
if: ${{ github.event_name == 'pull_request_target' }} | |
with: | |
file_pattern: README.md | |
commit_message: 'Update README.md' |