Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit e04251f

Browse files
committed
Use shared check-file action
1 parent 75a1778 commit e04251f

File tree

5 files changed

+16
-41
lines changed

5 files changed

+16
-41
lines changed

.github/script/check-file.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/1-copilot-extension.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,10 @@ jobs:
5555

5656
# Verify the learner added the file contents.
5757
- name: Check workflow contents, jobs
58-
run: |
59-
chmod a+x .github/script/check-file.sh
60-
./.github/script/check-file.sh
61-
env:
62-
FILE: ".devcontainer/devcontainer.json"
63-
SEARCH: "GitHub.copilot"
58+
uses: skills/action-check-file@v1
59+
with:
60+
file: ".devcontainer/devcontainer.json"
61+
search: "GitHub.copilot"
6462

6563
# In README.md, switch step 1 for step 2.
6664
- name: Update to step 2

.github/workflows/2-skills-javascript.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,10 @@ jobs:
5757

5858
# Verify the PR updated package.json
5959
- name: Check package.json
60-
run: |
61-
chmod a+x .github/script/check-file.sh
62-
./.github/script/check-file.sh
63-
env:
64-
FILE: "skills.js"
65-
SEARCH: "function calculateNumbers"
60+
uses: skills/action-check-file@v1
61+
with:
62+
file: "skills.js"
63+
search: "function calculateNumbers"
6664

6765
# In README.md, switch step 2 for step 3.
6866
- name: Update to step 3

.github/workflows/3-copilot-hub.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,10 @@ jobs:
5757

5858
# Verify the skills member function is present.
5959
- name: Check package for axios version 0.21.2
60-
run: |
61-
chmod a+x .github/script/check-file.sh
62-
./.github/script/check-file.sh
63-
env:
64-
FILE: "member.js"
65-
SEARCH: "skillsMember"
60+
uses: skills/action-check-file@v1
61+
with:
62+
file: "member.js"
63+
search: "skillsMember"
6664

6765
# In README.md, switch step 3 for step 4.
6866
- name: Update to step 4

.github/workflows/4-copilot-comment.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,10 @@ jobs:
5757

5858
# Verify the learner added the file contents.
5959
- name: Check workflow contents, jobs
60-
run: |
61-
chmod a+x .github/script/check-file.sh
62-
./.github/script/check-file.sh
63-
env:
64-
FILE: "comments.js"
65-
SEARCH: "Create web server"
60+
uses: skills/action-check-file@v1
61+
with:
62+
file: "comments.js"
63+
search: "Create web server"
6664

6765
# In README.md, switch step 3 for step X.
6866
- name: Update to step X

0 commit comments

Comments
 (0)