Workflow file for this run
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: Update README.md with latest Version | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GH_PAT_TOKEN }} # Needs write access to the repo | |
ref: main | |
- name: Update files | |
uses: MathieuSoysal/[email protected] | |
with: | |
files: README.md # List of files to update | |
prefix: "rev: " # Prefix before the version, default is: "" | |
with-checkout: false # If you don't want to checkout the repo, default is: true | |
- name: Push changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
committer_name: GitHub Actions | |
committer_email: [email protected] | |
add: README.md | |
message: 'Updated README.md with latest version number' |