Release CLI v0.257.0 (#179) #108
This file contains hidden or 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: tag | |
| on: | |
| # Update tags on every push to main. | |
| push: | |
| branches: | |
| - main | |
| # To allow for manual testing. | |
| workflow_dispatch: | |
| jobs: | |
| tag: | |
| runs-on: | |
| group: databricks-protected-runner-group | |
| labels: linux-ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Tag new versions | |
| shell: bash | |
| run: | | |
| set -e | |
| commits=$(git log --pretty=format:"%h" ./VERSION) | |
| for commit in $commits; do | |
| version=$(git show $commit:./VERSION) | |
| if [ -n "$(git tag -l "v${version}")" ]; then | |
| continue | |
| fi | |
| echo "Tagging $commit as v${version}" | |
| git tag "v${version}" $commit | |
| done | |
| - name: Push new tags | |
| shell: bash | |
| run: git push --tags |