Skip to content

Commit 9dbdc19

Browse files
committed
Refactor GitHub Actions build workflow by removing pull request trigger and cleaning up comments
- Removed the pull request trigger from the build workflow to streamline the process. - Cleaned up the script section by removing the comment addition step for pull requests. - Ensured the retention days for the VSIX artifact remain set to 5.
1 parent 437f20b commit 9dbdc19

1 file changed

Lines changed: 2 additions & 22 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ on:
66
- extension_test
77
paths-ignore:
88
- '.github/workflows/**' # Ignore changes to workflow files
9-
pull_request:
10-
branches:
11-
- extension_test
12-
paths-ignore:
13-
- '.github/workflows/**' # Ignore changes to workflow files
149
workflow_dispatch: # Allow manual trigger
1510

1611
jobs:
@@ -43,26 +38,11 @@ jobs:
4338
with:
4439
name: extension
4540
path: "*.vsix"
46-
retention-days: 5
41+
retention-days: 5
4742

4843
- name: Get Package Info
4944
id: package
5045
run: |
5146
VSIX_PATH=$(ls *.vsix)
5247
echo "Package created: $VSIX_PATH"
53-
echo "vsix_path=$VSIX_PATH" >> $GITHUB_OUTPUT
54-
55-
- name: Add Comment to PR
56-
if: github.event_name == 'pull_request'
57-
uses: actions/github-script@v7
58-
with:
59-
script: |
60-
const vsixPath = '${{ steps.package.outputs.vsix_path }}';
61-
const message = `✨ Extension package built successfully!\nArtifact: \`${vsixPath}\`\n\nYou can download the VSIX package from the Actions tab.`;
62-
63-
github.rest.issues.createComment({
64-
owner: context.repo.owner,
65-
repo: context.repo.repo,
66-
issue_number: context.issue.number,
67-
body: message
68-
});
48+
echo "vsix_path=$VSIX_PATH" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)