Skip to content

Commit

Permalink
Use shared check-file action
Browse files Browse the repository at this point in the history
  • Loading branch information
heiskr committed May 31, 2023
1 parent 1132ebc commit 6f6ba39
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 29 deletions.
17 changes: 0 additions & 17 deletions .github/script/check-file.sh

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/1-create-a-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ jobs:

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

# In README.md, switch step 1 for step 2.
- name: Update to step 2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/2-add-a-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ jobs:

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

# In README.md, switch step 2 for step 3.
- name: Update to step 3
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/3-add-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ jobs:

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

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

0 comments on commit 6f6ba39

Please sign in to comment.