File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ This repository serves as a comprehensive toolkit for creating and managing GitH
22
22
23
23
- ** [ .github/workflows] ( /.github/workflows ) ** : GitHub Actions workflows for automating common parts of Skills Exercises
24
24
- ** [ markdown-templates] ( /markdown-templates ) ** : Ready-to-use Markdown templates for creating consistent exercise documentation, instructions, and README files
25
+ - ** [ actions] ( /actions ) ** : Simple composite actions to help when building GitHub Skills exercises
26
+
25
27
26
28
## Examples
27
29
Original file line number Diff line number Diff line change
1
+ # File Exists :package :
2
+
3
+ A GitHub Action that checks if a file exists in the repository.
4
+
5
+ This action will fail if the file does not exist
6
+
7
+ ## Inputs ⚙️
8
+
9
+ | Name | Description | Required |
10
+ | ------ | -------------------------------------------------------------- | -------- |
11
+ | ` file ` | The path to the file to check, relative to the repository root | Yes |
12
+
13
+ ## Usage 🚀
14
+
15
+ ``` yaml
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - name : Check if file exists
19
+ uses : skills/exercise-toolkit/actions/file-exists@<git-tag>
20
+ with :
21
+ file : " path/to/your/file.md"
22
+ ` ` `
You can’t perform that action at this time.
0 commit comments