Skip to content

Commit bf7eb5b

Browse files
authored
build: automate pr to website (#954)
* build: automate pr to website * docs: update release steps * docs: update release steps
1 parent 7e41b5c commit bf7eb5b

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/on-tag.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,18 @@ jobs:
3535
node-version-file: '.nvmrc'
3636
- id: version
3737
run: echo "version=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')" >> $GITHUB_OUTPUT
38-
- name: setup git config
39-
run: |
40-
git config user.name github-actions
41-
git config user.email [email protected]
42-
- run: git checkout -b "bump/${{ steps.version.outputs.version }}"
4338
- run: pnpm version ${{ steps.version.outputs.version }}
44-
- run: git push origin "bump/${{ steps.version.outputs.version }}"
45-
- uses: actions/github-script@v7
39+
- uses: peter-evans/create-pull-request@v6
4640
with:
47-
script: |
48-
core.notice('Create PR by going to: https://github.com/gitify-app/website/compare/bump/${{ steps.version.outputs.version }}')
41+
token: ${{ secrets.GITHUB_TOKEN }}
42+
commit-message: 'docs: update latest release to ${{ steps.version.outputs.version }}'
43+
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
44+
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
45+
signoff: false
46+
branch: 'bump/${{ steps.version.outputs.version }}'
47+
delete-branch: true
48+
title: 'docs: update latest release to ${{ steps.version.outputs.version }}'
49+
body: |
50+
Update latest release to ${{ steps.version.outputs.version }}
51+
labels: |
52+
documentation

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The release process is automated. Follow the steps below.
4242
4. In the same branch, **bump the version** of the app by running `pnpm version <new-version-number`. Commit these changes and open a PR. A GitHub Actions workflow will build, sign and upload the release assets for each commit to that branch as long as a branch is named like `release/vX.X.X` and there is a draft release with the same version number(`package.json`).
4343
5. Merge your release branch into `main`.
4444
6. Publish the release once you've finalized the release notes and confirmed all assets are there.
45-
7. Raise and merge a pull request in [gitify-app/website][github-website] using the automatically created branch (ie: `bump/v1.2.3`)
45+
7. Merge the open pull request in [gitify-app/website](https://github.com/gitify-app/website/pulls) (ie: `bump/v1.2.3`)
4646

4747
### Tests
4848

0 commit comments

Comments
 (0)