Skip to content

chore: trigger release v1.0.4-rc.1 (#217) #5

chore: trigger release v1.0.4-rc.1 (#217)

chore: trigger release v1.0.4-rc.1 (#217) #5

name: Trigger release based on VERSION file change
on:
push:
paths:
- VERSION
branches:
- main
jobs:
version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
latest: ${{ steps.version.outputs.latest == 'latest' }}
steps:
- uses: actions/checkout@v4
- id: version
run: |
echo "version=$(head -1 VERSION)" >> "$GITHUB_OUTPUT"
echo "latest=$(tail -1 VERSION)" >> "$GITHUB_OUTPUT"
- name: Validate semver
uses: booxmedialtd/ws-action-parse-semver@7784200024d6b3fc01253e617ec0168daf603de3 # v1.4.7
with:
input_string: ${{ steps.version.outputs.version }}
version_extractor_regex: 'v(.*)$'
trigger_release:
needs:
- version
uses: ./.github/workflows/release.yaml
permissions:
contents: write # This is required to create GH releases.
with:
tag: ${{ needs.version.outputs.version }}
latest: ${{ needs.version.outputs.latest == 'true' }}