|
6 | 6 |
|
7 | 7 | jobs:
|
8 | 8 | update-website:
|
9 |
| - name: Website |
| 9 | + name: Update Website Version |
10 | 10 | runs-on: ubuntu-latest
|
11 | 11 | steps:
|
12 |
| - - uses: actions/checkout@v4 |
| 12 | + - name: Checkout website repository |
| 13 | + uses: actions/checkout@v4 |
13 | 14 | with:
|
14 | 15 | repository: gitify-app/website
|
15 | 16 | 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 |
18 | 23 | with:
|
19 | 24 | 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 |
24 | 39 | 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 }}" |
31 | 42 | 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 }} |
33 | 45 | body: |
|
34 |
| - Update latest release to ${{ steps.version.outputs.version }} |
| 46 | + Automated update to latest release version ${{ env.GITIFY_VERSION }} |
35 | 47 | labels: |
|
36 | 48 | documentation
|
0 commit comments