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 }}