Skip to content

Added workflow to update current-version-tag in readme.md #1

Added workflow to update current-version-tag in readme.md

Added workflow to update current-version-tag in readme.md #1

# 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