Skip to content

Commit dec57d3

Browse files
authored
chore(ci): bump socket-registry action refs + remove close/reopen workaround (#48)
1 parent 379fb4b commit dec57d3

3 files changed

Lines changed: 6 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717
jobs:
1818
ci:
1919
name: Run CI Pipeline
20-
uses: SocketDev/socket-registry/.github/workflows/ci.yml@6147a08ccc20fcb1f690dcc4650ec745776b3345 # main
20+
uses: SocketDev/socket-registry/.github/workflows/ci.yml@d425cd0501e354096f35043e1badecc370a2fecf # main
2121
with:
2222
fail-fast: false
2323
lint-script: 'pnpm run lint --all'

.github/workflows/provenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ permissions:
2727

2828
jobs:
2929
publish:
30-
uses: SocketDev/socket-registry/.github/workflows/provenance.yml@6147a08ccc20fcb1f690dcc4650ec745776b3345 # main
30+
uses: SocketDev/socket-registry/.github/workflows/provenance.yml@d425cd0501e354096f35043e1badecc370a2fecf # main
3131
with:
3232
debug: ${{ inputs.debug }}
3333
dist-tag: ${{ inputs.dist-tag }}

.github/workflows/weekly-update.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
outputs:
2525
has-updates: ${{ steps.check.outputs.has-updates }}
2626
steps:
27-
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@6147a08ccc20fcb1f690dcc4650ec745776b3345 # main
27+
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@d425cd0501e354096f35043e1badecc370a2fecf # main
2828

2929
- name: Check for npm updates
3030
id: check
@@ -48,7 +48,7 @@ jobs:
4848
contents: write
4949
pull-requests: write
5050
steps:
51-
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@6147a08ccc20fcb1f690dcc4650ec745776b3345 # main
51+
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@d425cd0501e354096f35043e1badecc370a2fecf # main
5252

5353
- name: Create update branch
5454
id: branch
@@ -60,7 +60,7 @@ jobs:
6060
git checkout -b "$BRANCH_NAME"
6161
echo "branch=$BRANCH_NAME" >> $GITHUB_OUTPUT
6262
63-
- uses: SocketDev/socket-registry/.github/actions/setup-git-signing@6147a08ccc20fcb1f690dcc4650ec745776b3345 # main
63+
- uses: SocketDev/socket-registry/.github/actions/setup-git-signing@d425cd0501e354096f35043e1badecc370a2fecf # main
6464
with:
6565
gpg-private-key: ${{ secrets.BOT_GPG_PRIVATE_KEY }}
6666

@@ -267,21 +267,6 @@ jobs:
267267
--head "$BRANCH_NAME" \
268268
--base main
269269
270-
# Pushes made with GITHUB_TOKEN don't trigger other workflows.
271-
# Close/reopen the PR to generate a pull_request.reopened event,
272-
# which triggers required CI and enterprise audit workflows.
273-
- name: Trigger CI checks
274-
if: steps.final.outputs.success == 'true' && steps.validate.outputs.valid == 'true' && steps.changes.outputs.has-changes == 'true'
275-
env:
276-
GH_TOKEN: ${{ github.token }}
277-
BRANCH_NAME: ${{ steps.branch.outputs.branch }}
278-
run: |
279-
pr_number=$(gh pr list --head "$BRANCH_NAME" --json number --jq '.[0].number')
280-
if [ -n "$pr_number" ]; then
281-
gh pr close "$pr_number"
282-
gh pr reopen "$pr_number"
283-
fi
284-
285270
- name: Add job summary
286271
if: steps.final.outputs.success == 'true' && steps.validate.outputs.valid == 'true' && steps.changes.outputs.has-changes == 'true'
287272
env:
@@ -305,7 +290,7 @@ jobs:
305290
test-output.log
306291
retention-days: 7
307292

308-
- uses: SocketDev/socket-registry/.github/actions/cleanup-git-signing@6147a08ccc20fcb1f690dcc4650ec745776b3345 # main
293+
- uses: SocketDev/socket-registry/.github/actions/cleanup-git-signing@d425cd0501e354096f35043e1badecc370a2fecf # main
309294
if: always()
310295

311296
notify:

0 commit comments

Comments
 (0)