Skip to content

Commit 6f6ba39

Browse files
committed
Use shared check-file action
1 parent 1132ebc commit 6f6ba39

File tree

4 files changed

+12
-29
lines changed

4 files changed

+12
-29
lines changed

.github/script/check-file.sh

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

.github/workflows/1-create-a-workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ jobs:
5656

5757
# Verify the learner added the file contents.
5858
- name: Check workflow contents, name
59-
run: ./.github/script/check-file.sh
60-
env:
61-
FILE: ".github/workflows/welcome.yml"
62-
SEARCH: "name:"
59+
uses: skills/action-check-file@v1
60+
with:
61+
file: ".github/workflows/welcome.yml"
62+
search: "name:"
6363

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

.github/workflows/2-add-a-job.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ jobs:
5656

5757
# Verify the learner added the file contents.
5858
- name: Check workflow contents, jobs
59-
run: ./.github/script/check-file.sh
60-
env:
61-
FILE: ".github/workflows/welcome.yml"
62-
SEARCH: "jobs:"
59+
uses: skills/action-check-file@v1
60+
with:
61+
file: ".github/workflows/welcome.yml"
62+
search: "jobs:"
6363

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

.github/workflows/3-add-actions.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ jobs:
5656

5757
# Verify the learner added the file contents.
5858
- name: Check workflow contents, steps
59-
run: ./.github/script/check-file.sh
60-
env:
61-
FILE: ".github/workflows/welcome.yml"
62-
SEARCH: "steps:"
59+
uses: skills/action-check-file@v1
60+
with:
61+
file: ".github/workflows/welcome.yml"
62+
search: "steps:"
6363

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

0 commit comments

Comments
 (0)