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 ecd6e77 commit 66417ef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 25 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-the-workflow-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ jobs:

# Check the learner added intended contents to the file.
- name: Verify publish.yml file contents
run: ./.github/script/check-file.sh
env:
FILE: ".github/workflows/publish.yml"
SEARCH: "docker/build-push-action"
uses: skills/action-check-file@v1
with:
file: ".github/workflows/publish.yml"
search: "docker/build-push-action"

# 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-dockerfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ jobs:

# Check the learner added intended contents to the file.
- name: Verify Dockerfile contents
run: ./.github/script/check-file.sh
env:
FILE: "Dockerfile"
SEARCH: "FROM nginx:1.24-alpine"
uses: skills/action-check-file@v1
with:
file: "Dockerfile"
search: "FROM nginx:1.24-alpine"

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

0 comments on commit 66417ef

Please sign in to comment.