Bump version to v1.5.2 #366
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 Release | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- '**.json' | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- '**.json' | ||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Get Version Number | ||
run: echo "version=$(jq -r .version package.json)" >> $GITHUB_ENV | ||
- name: Fetch tags | ||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
- name: Check if version changed | ||
run: | | ||
if git rev-parse "v${{ env.version }}" >/dev/null 2>&1; then | ||
echo "exists=true" >> $GITHUB_ENV | ||
else | ||
echo "exists=false" >> $GITHUB_ENV | ||
- name: Create Release | ||
if: env.exists == 'false' | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{ env.version | ||
Check failure on line 41 in .github/workflows/release-checker.yml GitHub Actions / Create ReleaseInvalid workflow file
|