adding diff_opts
to allow adding aditional helm diff
options. (#125)
#6
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 Main | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- VERSION | |
workflow_dispatch: # Enable manual triggering | |
inputs: | |
tag: | |
description: 'Version to tag (without the prefix v)' | |
required: false | |
jobs: | |
tag: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Get version from file | |
id: get_version | |
run: echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT | |
- name: Create tag | |
id: create_tag | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git tag -a v${{ github.event.inputs.tag || steps.get_version.outputs.version }} -m "Tagging version v${{ github.event.inputs.tag || steps.get_version.outputs.version }}" | |
git push origin v${{ github.event.inputs.tag || steps.get_version.outputs.version }} |