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 68903b8 commit f031090
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-first-codespace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,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: "index.html"
SEARCH: "Hello from the codespace"
uses: skills/action-check-file@v1
with:
file: "index.html"
search: "Hello from the codespace"

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

# Verify the devcontainer.json has an image.
- name: Check devcontainer.json
run: |
chmod a+x .github/script/check-file.sh
./.github/script/check-file.sh
env:
FILE: ".devcontainer/devcontainer.json"
SEARCH: "mcr.microsoft.com/vscode/devcontainers/universal:latest"
uses: skills/action-check-file@v1
with:
file: ".devcontainer/devcontainer.json"
search: "mcr.microsoft.com/vscode/devcontainers/universal:latest"

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

# Verify the postCreateCommand was added.
- name: Check for postCreateCommand
run: |
chmod a+x .github/script/check-file.sh
./.github/script/check-file.sh
env:
FILE: ".devcontainer/devcontainer.json"
SEARCH: "postCreateCommand"
uses: skills/action-check-file@v1
with:
file: ".devcontainer/devcontainer.json"
search: "postCreateCommand"

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

# Verify the setup.sh 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: "setup.sh"
SEARCH: "install sl"
uses: skills/action-check-file@v1
with:
file: "setup.sh"
search: "install sl"

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

0 comments on commit f031090

Please sign in to comment.