diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 5fd35b24..604c1f3f 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -10,15 +10,5 @@ jobs: create-release: name: Tag Release ${{ github.head_ref }} if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'codecov' }} - runs-on: ubuntu-22.04 - steps: - # From https://stackoverflow.com/a/75679739 - - name: Create release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - tag: ${{ github.ref_name }} - run: | - gh release create "$tag" \ - --repo="$GITHUB_REPOSITORY" \ - --title="${GITHUB_REPOSITORY#*/} ${tag#v}" \re - --generate-notes + uses: codecov/gha-workflows/.github/workflows/create-release.yml@v1.1.0 + secrets: inherit diff --git a/.github/workflows/create_release_pr.yml b/.github/workflows/create_release_pr.yml index d7d0d95a..5c57f350 100644 --- a/.github/workflows/create_release_pr.yml +++ b/.github/workflows/create_release_pr.yml @@ -10,5 +10,5 @@ on: jobs: create-release-pr: name: Create PR for Release ${{ github.event.inputs.versionName }} - uses: codecov/gha-workflows/.github/workflows/create-self-hosted-pr.yml@v1.0.0 + uses: codecov/gha-workflows/.github/workflows/create-release-pr.yml@v1.1.0 secrets: inherit \ No newline at end of file