Skip to content

Commit 84b69c7

Browse files
committed
chore(ci): bump socket-registry action refs + remove close/reopen workaround
1 parent a644a70 commit 84b69c7

File tree

4 files changed

+9
-37
lines changed

4 files changed

+9
-37
lines changed

.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@a2508ee16ecd49224d4367d262fd83a2ca8473c8 # main
2121
with:
2222
fail-fast: false
2323
lint-script: 'pnpm run lint --all'

.github/workflows/generate.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ jobs:
4545
echo "Sleeping for $delay seconds..."
4646
sleep $delay
4747
48-
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@6147a08ccc20fcb1f690dcc4650ec745776b3345 # main
48+
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@a2508ee16ecd49224d4367d262fd83a2ca8473c8 # main
4949

5050
- name: Configure push credentials
5151
env:
5252
GH_TOKEN: ${{ github.token }}
5353
run: git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git"
5454

55-
- uses: SocketDev/socket-registry/.github/actions/setup-git-signing@6147a08ccc20fcb1f690dcc4650ec745776b3345 # main
55+
- uses: SocketDev/socket-registry/.github/actions/setup-git-signing@a2508ee16ecd49224d4367d262fd83a2ca8473c8 # main
5656
with:
5757
gpg-private-key: ${{ secrets.BOT_GPG_PRIVATE_KEY }}
5858

@@ -108,19 +108,6 @@ jobs:
108108
echo "PR #$existing_pr already exists, skipping creation"
109109
fi
110110
111-
# Pushes made with GITHUB_TOKEN don't trigger other workflows.
112-
# Close/reopen the PR to generate a pull_request.reopened event,
113-
# which triggers required CI and enterprise audit workflows.
114-
- name: Trigger CI checks
115-
if: steps.check.outputs.has_changes == 'true'
116-
env:
117-
GH_TOKEN: ${{ github.token }}
118-
run: |
119-
pr_number=$(gh pr list --head automated/open-api --json number --jq '.[0].number')
120-
if [ -n "$pr_number" ]; then
121-
gh pr close "$pr_number"
122-
gh pr reopen "$pr_number"
123-
fi
124111
125-
- uses: SocketDev/socket-registry/.github/actions/cleanup-git-signing@6147a08ccc20fcb1f690dcc4650ec745776b3345 # main
112+
- uses: SocketDev/socket-registry/.github/actions/cleanup-git-signing@a2508ee16ecd49224d4367d262fd83a2ca8473c8 # main
126113
if: always()

.github/workflows/provenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
permissions:
2626
contents: write # To create GitHub releases
2727
id-token: write # For npm trusted publishing via OIDC
28-
uses: SocketDev/socket-registry/.github/workflows/provenance.yml@6147a08ccc20fcb1f690dcc4650ec745776b3345 # main
28+
uses: SocketDev/socket-registry/.github/workflows/provenance.yml@a2508ee16ecd49224d4367d262fd83a2ca8473c8 # main
2929
with:
3030
debug: ${{ inputs.debug }}
3131
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@a2508ee16ecd49224d4367d262fd83a2ca8473c8 # 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@a2508ee16ecd49224d4367d262fd83a2ca8473c8 # 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@a2508ee16ecd49224d4367d262fd83a2ca8473c8 # main
6464
with:
6565
gpg-private-key: ${{ secrets.BOT_GPG_PRIVATE_KEY }}
6666

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

309-
- uses: SocketDev/socket-registry/.github/actions/cleanup-git-signing@6147a08ccc20fcb1f690dcc4650ec745776b3345 # main
294+
- uses: SocketDev/socket-registry/.github/actions/cleanup-git-signing@a2508ee16ecd49224d4367d262fd83a2ca8473c8 # main
310295
if: always()
311296

312297
notify:

0 commit comments

Comments
 (0)