make test work in PRs and all branches #1
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: Publish GitHub Actions | |
on: | |
push: | |
tags: | |
- v?[0-9]+.[0-9]+.[0-9]+-?** | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Determine versions | |
id: versions | |
run: | | |
echo "major-version=v$(cat VERSION)" >> "$GITHUB_OUTPUT" | |
- name: Debug versions | |
run: | | |
echo "${{steps.versions.outputs.major-version}}" | |
- run: git tag -f "${{ steps.versions.outputs.major-version }}" | |
if: ${{ ! contains(steps.versions.outputs.full-version,'-') }} | |
- run: git push -f origin "${{ steps.versions.outputs.major-version }}" | |
if: ${{ ! contains(steps.versions.outputs.full-version,'-') }} |