Added workflow to update current-version-tag in readme.md #1
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
# This workflow will update the readme file to point to the current version of Data Profiler. | |
name: Update Current Version Tag | |
on: | |
push: | |
branches: | |
- 'dynamiclink' | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update README.md | |
- run: git fetch --prune --unshallow | |
run: | | |
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`) | |
sed "s|<workflow_to_replace_with_live_version_tag>|$latest_tag|g" readme.md > tmp.md && mv tmp.md readme.md | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git commit -am "Update README with latest version tag" | |
git push |