WIP fix gh-action #1132
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: build | |
on: [push, pull_request] | |
jobs: | |
create_release: | |
name: create github release | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: recovery tag information | |
run: git fetch --tags --force | |
# See: https://github.com/actions/checkout/issues/290 | |
- name: check tag | |
id: check-tag | |
run: | | |
if [[ ${{ github.event.ref }} =~ '^refs/tags/v[0-9]+(\.[0-9]+)*$' ]]; then | |
echo "match=true" | |
echo "match=true" >> $GITHUB_OUTPUT | |
else | |
echo "match=false" | |
fi | |
- name: release | |
if: steps.check-tag.outputs.match == 'true' | |
run: | | |
echo try to release |