Skip to content

Commit 64cb8ee

Browse files
authored
Fix workflow again, remove redundant build step (#8)
- The create-pull-request action expects to create the branch, so it was resetting the changes and then had nothing to do. - Bumps the create-pull-request action to v7 and enables signed commits - Also removing the "Build site" step from the PR workflow; it's redundant since Vercal does this too.
1 parent cbd5760 commit 64cb8ee

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

.github/workflows/_static-checks.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,3 @@ jobs:
2525

2626
- name: Run Prettier
2727
run: npm run prettier
28-
29-
build:
30-
name: Build site
31-
runs-on: ubuntu-latest
32-
steps:
33-
- name: Checkout Repository
34-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
35-
36-
- name: Setup
37-
uses: ./.github/actions/setup
38-
39-
- name: Build site
40-
run: npm run build

.github/workflows/update-toolhive-reference.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,9 @@ jobs:
3939
echo "changed=true" >> $GITHUB_OUTPUT
4040
fi
4141
42-
- name: Create branch, commit, and push
43-
if: steps.git-diff.outputs.changed == 'true'
44-
run: |
45-
BRANCH=update-toolhive-reference-${VERSION}
46-
git checkout -b "$BRANCH"
47-
git commit -am "Update ToolHive reference docs for ${VERSION}"
48-
git push origin "$BRANCH"
49-
git checkout main
50-
env:
51-
VERSION: ${{ steps.imports.outputs.version }}
52-
5342
- name: Create Pull Request
5443
if: steps.git-diff.outputs.changed == 'true'
55-
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6
44+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7
5645
with:
5746
branch: update-toolhive-reference-${{ steps.imports.outputs.version }}
5847
title: |
@@ -62,3 +51,4 @@ jobs:
6251
commit-message: |
6352
Update ToolHive reference docs for ${{ steps.imports.outputs.version }}
6453
delete-branch: true
54+
sign-commits: true

0 commit comments

Comments
 (0)