Minor fixes #2
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
name: Create tag for release | |
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- closed | |
workflow_dispatch: # Allow manual triggering | |
jobs: | |
tag_release: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Parse tag to ENV | |
run: | | |
echo RELEASE_TAG=$(docker run --rm -v ${PWD}:/workdir mikefarah/yq .version version.yml ) >> ${GITHUB_ENV} | |
cat ${GITHUB_ENV} | |
- uses: rickstaa/action-create-tag@v1 | |
if: ${{ !env.ACT }} | |
id: "tag_create" | |
with: | |
tag: ${{ env.RELEASE_TAG }} | |
tag_exists_error: false |