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 75a1778 commit e04251f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 41 deletions.
17 changes: 0 additions & 17 deletions .github/script/check-file.sh

This file was deleted.

10 changes: 4 additions & 6 deletions .github/workflows/1-copilot-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,10 @@ jobs:

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

# In README.md, switch step 1 for step 2.
- name: Update to step 2
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/2-skills-javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,10 @@ jobs:

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

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

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

# In README.md, switch step 3 for step 4.
- name: Update to step 4
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/4-copilot-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,10 @@ jobs:

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

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

0 comments on commit e04251f

Please sign in to comment.