Merge pull request #19 from Quantco/dependabot/github_actions/depende… #11
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: Tag on version bump | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
tag: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Quantco/ui-actions/version-metadata@v1 | |
id: version-metadata | |
with: | |
file: environment.yml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
version-extraction-override: 'regex:\s+- tflint=(\d+.\d+.\d+)' | |
- name: Bump tag | |
if: steps.version-metadata.outputs.changed == 'true' | |
run: | | |
version="${{ steps.version-metadata.outputs.newVersion }}" | |
git tag "$version" | |
git push origin "$version" |