Skip to content

Commit c45a253

Browse files
authored
Remove duplicate steps in Visual Test workflow (#7557)
### WHY are these changes introduced? The current `vistest.yaml` GitHub workflow has a few duplicate steps. <!-- Context about the problem that’s being addressed. --> ### WHAT is this pull request doing? Removes the duplicate Node setup, git checkout, and cache restore steps.
1 parent 724f974 commit c45a253

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/vistest.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ jobs:
1212
github.event.issue.pull_request && github.event.comment.body == '/vistest'
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Checkout branch
16-
uses: actions/checkout@v3
17-
18-
- name: Setup Node with v16.13.0
19-
uses: actions/setup-node@v3
15+
- name: Enforce permission requirement
16+
uses: prince-chrismc/check-actor-permissions-action@v1
2017
with:
2118
permission: write
2219

23-
- name: Restore cache
24-
uses: actions/cache@v3
20+
- name: Validate pull request is not on forked repo
21+
uses: actions/github-script@v6
22+
id: pr_data
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2525
with:
2626
script: |
2727
try {

0 commit comments

Comments
 (0)