Skip to content

Commit 9a12faa

Browse files
authored
fix: website version bump workflow (#1051)
* fix: use correct token var in website version bump workflow * verify fix * verify fix * verify fix * verify fix * verify fix * verify fix * verify fix * verify fix * verify fix * verify fix * verify fix * verify fix * fix: website version bump * fix: website version bump * fix: website version bump * fix: website version bump * fix: website version bump * fix: website version bump * fix: website version bump * fix: website version bump * fix: website version bump * test using github token * fix: website version bump
1 parent e0b88e4 commit 9a12faa

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed

.github/workflows/on-tag.yml

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,43 @@ on:
66

77
jobs:
88
update-website:
9-
name: Website
9+
name: Update Website Version
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
12+
- name: Checkout website repository
13+
uses: actions/checkout@v4
1314
with:
1415
repository: gitify-app/website
1516
token: ${{ secrets.GH_TOKEN }}
16-
- uses: pnpm/action-setup@v3
17-
- uses: actions/setup-node@v4
17+
18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@v3
20+
21+
- name: Setup node
22+
uses: actions/setup-node@v4
1823
with:
1924
node-version-file: '.nvmrc'
20-
- id: version
21-
run: echo "version=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')" >> $GITHUB_OUTPUT
22-
- run: pnpm version ${{ steps.version.outputs.version }}
23-
- uses: peter-evans/create-pull-request@v6
25+
26+
- name: Bump version to latest tag
27+
run: echo "GITIFY_VERSION=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')" >> $GITHUB_OUTPUT
28+
29+
- name: Setup git config
30+
run: |
31+
git config user.name github-actions[bot]
32+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
33+
34+
- name: Bump version to latest
35+
run: pnpm version ${{ env.GITIFY_VERSION }}
36+
37+
- name: Create pull request
38+
uses: peter-evans/create-pull-request@v6
2439
with:
25-
token: ${{ secrets.GITHUB_TOKEN }}
26-
commit-message: 'docs: update latest release to ${{ steps.version.outputs.version }}'
27-
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
28-
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
29-
signoff: false
30-
branch: 'bump/${{ steps.version.outputs.version }}'
40+
token: ${{ secrets.GH_TOKEN }}
41+
branch: "bump/${{ env.GITIFY_VERSION }}"
3142
delete-branch: true
32-
title: 'docs: update latest release to ${{ steps.version.outputs.version }}'
43+
title: |
44+
docs: update to latest release version ${{ env.GITIFY_VERSION }}
3345
body: |
34-
Update latest release to ${{ steps.version.outputs.version }}
46+
Automated update to latest release version ${{ env.GITIFY_VERSION }}
3547
labels: |
3648
documentation

0 commit comments

Comments
 (0)