diff --git a/.github/workflows/on-tag.yml b/.github/workflows/on-tag.yml index 37cb06048..0360bba2a 100644 --- a/.github/workflows/on-tag.yml +++ b/.github/workflows/on-tag.yml @@ -35,14 +35,18 @@ jobs: node-version-file: '.nvmrc' - id: version run: echo "version=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')" >> $GITHUB_OUTPUT - - name: setup git config - run: | - git config user.name github-actions - git config user.email github-actions@github.com - - run: git checkout -b "bump/${{ steps.version.outputs.version }}" - run: pnpm version ${{ steps.version.outputs.version }} - - run: git push origin "bump/${{ steps.version.outputs.version }}" - - uses: actions/github-script@v7 + - uses: peter-evans/create-pull-request@v6 with: - script: | - core.notice('Create PR by going to: https://github.com/gitify-app/website/compare/bump/${{ steps.version.outputs.version }}') + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: 'docs: update latest release to ${{ steps.version.outputs.version }}' + committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> + author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> + signoff: false + branch: 'bump/${{ steps.version.outputs.version }}' + delete-branch: true + title: 'docs: update latest release to ${{ steps.version.outputs.version }}' + body: | + Update latest release to ${{ steps.version.outputs.version }} + labels: | + documentation diff --git a/README.md b/README.md index dd5c6f2c4..577458814 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ The release process is automated. Follow the steps below. 4. In the same branch, **bump the version** of the app by running `pnpm version