Skip to content

Commit

Permalink
Update checks.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
seanconroy2021 committed Oct 10, 2023
1 parent 1f5a138 commit 630e7dc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ jobs:
release:
runs-on: ubuntu-latest
needs: ci
permissions:
contents: write
if: needs.ci.outputs.status == 'success' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
steps:
- name: Setup GitHub Auth for gh cli
run: echo ${{ secrets.GHTOKEN }} | gh auth login --with-token
# - name: Setup GitHub Auth for gh cli
# run: echo ${{ secrets.GHTOKEN }} | gh auth login --with-token
- name: Get Latest Version Tag and Increment
run: |
# Find the version tag and then increment new version with v prefix eg. v1.0.1 -> v1.0.2
latestVTag=$(gh api -H 'Accept: application/vnd.github.v3+json' /repos/${{ github.repository }}/releases/latest -q '.tag_name')
echo "newVersion=v$(echo ${latestVTag#v} | awk -F. '{$NF = $NF + 1;} 1' OFS=.)" >> $GITHUB_ENV
env:
GH_TOKEN: ${{ github.token }}

- name: Create New Version Release
uses: softprops/action-gh-release@v1
with:
Expand All @@ -55,4 +55,4 @@ jobs:
tag_name: ${{ env.newVersion }}
generate_release_notes: true
draft: false
prerelease: false
prerelease: false

0 comments on commit 630e7dc

Please sign in to comment.