extension_ci: Switch back to upstream action (#51829)
This switches the action back to the upstream one where the changes were merged (thanks @\huacnlee for the quick action) Aside from that, it does some minor fixes: It adds the bumper as an assignee on the extensions PR and also ensures we do not try to bump here in the repo for the test extensions. Release Notes: - N/A
This commit is contained in:
1 parent
4d2d0760e0
commit
30d3467d4b
4 files changed
+30
-6
No files matched your search
@@ -7,6 +7,8 @@ on:
|
||||
- main
|
||||
paths:
|
||||
- extensions/**
|
||||
- '!extensions/slash-commands-example/**'
|
||||
- '!extensions/test-extension/**'
|
||||
- '!extensions/workflows/**'
|
||||
- '!extensions/*.md'
|
||||
jobs:
|
||||
|
||||
@@ -231,7 +231,7 @@ jobs:
|
||||
echo "extension_id=${EXTENSION_ID}" >> "$GITHUB_OUTPUT"
|
||||
- id: extension-update
|
||||
name: extension_bump::release_action
|
||||
uses: zed-extensions/update-action@72da482880c2f32ec8aa6e0a0427ab92d52ae32d
|
||||
uses: huacnlee/zed-extension-action@82920ff0876879f65ffbcfa3403589114a8919c6
|
||||
with:
|
||||
extension-name: ${{ steps.get-extension-id.outputs.extension_id }}
|
||||
push-to: zed-industries/extensions
|
||||
@@ -269,12 +269,22 @@ jobs:
|
||||
return;
|
||||
}
|
||||
|
||||
// Assign staff member responsible for the bump
|
||||
const pullNumber = parseInt(prNumber);
|
||||
|
||||
await github.rest.issues.addAssignees({
|
||||
owner: 'zed-industries',
|
||||
repo: 'extensions',
|
||||
issue_number: pullNumber,
|
||||
assignees: [author]
|
||||
});
|
||||
console.log(`Assigned ${author} to PR #${prNumber} in zed-industries/extensions`);
|
||||
|
||||
// Get the GraphQL node ID
|
||||
const { data: pr } = await github.rest.pulls.get({
|
||||
owner: 'zed-industries',
|
||||
repo: 'extensions',
|
||||
pull_number: parseInt(prNumber)
|
||||
pull_number: pullNumber
|
||||
});
|
||||
|
||||
await github.graphql(`
|
||||
|
||||
Reference in new issue
Block a user