From bb18308505ab658c19613ff2cf253bb829f7e70f Mon Sep 17 00:00:00 2001 From: Scott Date: Sun, 28 Jan 2024 09:30:32 -0500 Subject: [PATCH] ci: #minor change --- .github/workflows/release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e8f864b..a8d56dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,13 +12,15 @@ concurrency: production jobs: build: - name: Create Release + name: bump tag version and release if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 - + uses: actions/checkout@v3 + with: + ref: ${{ github.sha }} ## this seems to be required due to https://github.com/anothrNick/github-tag-action/issues/266 + fetch-depth: 0 - name: 'Automated Version Bump' id: version-bump uses: anothrNick/github-tag-action@1.36.0 @@ -35,7 +37,6 @@ jobs: REPO: ${{ github.repository }} - name: Create Release uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') with: token: ${{ secrets.GITHUB_TOKEN }} generate_release_notes: true @@ -43,5 +44,5 @@ jobs: tag_name: ${{ steps.version-bump.outputs.new_tag }} prerelease: false env: - GITHUB_REPOSITORY: my_gh_org/my_gh_repo + GITHUB_REPOSITORY: ${{ github.repository }}