You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Revert "Update to 1 in STEP and README.md"
This reverts commit 51da327.
* Fix workflows
Use multi-line conditional expressions !github.event.repository.is_template
Use skills/action-update-step@v1
* Delete 'close' in <details id=1>
* Use X for the last step
Finish
Edit YAML comments
* Use emoji shortcodes
:x:
* Revert "Update my-workflow.yml"
This reverts commit 15ec6c7.
* Fix my-workflow.yml
Fix the indent style and add a conditional expression
Copy file name to clipboardExpand all lines: README.md
+16-12
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ _In our case, we will use this one **workflow** file for many things, which lead
62
62
63
63
Read more about [workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/configuring-a-workflow#choosing-the-type-of-actions-for-your-workflow)
64
64
65
-
<detailsid=1close>
65
+
<detailsid=1>
66
66
67
67
<summary><h2> Step 1: Initialize a new JavaScript project</h2></summary>
68
68
@@ -183,10 +183,10 @@ This file defines the following information about your action:
| Name | The name of your action. Helps visually identify the actions in a job. | :white_check_mark: |
185
185
| Description | A summary of what your action does. | :white_check_mark: |
186
-
| Inputs | Input parameters allow you to specify data that the action expects to use during runtime. These parameters become environment variables in the runner. | ❌ |
187
-
| Outputs | Specifies the data that subsequent actions can use later in the workflow after the action that defines these outputs has run. | ❌ |
186
+
| Inputs | Input parameters allow you to specify data that the action expects to use during runtime. These parameters become environment variables in the runner. |:x:|
187
+
| Outputs | Specifies the data that subsequent actions can use later in the workflow after the action that defines these outputs has run. |:x:|
188
188
| Runs | The command to run when the action executes. | :white_check_mark: |
189
-
| Branding | You can use a color and Feather icon to create a badge to personalize and distinguish your action in GitHub Marketplace. | ❌ |
189
+
| Branding | You can use a color and Feather icon to create a badge to personalize and distinguish your action in GitHub Marketplace. |:x:|
190
190
191
191
---
192
192
@@ -397,25 +397,29 @@ All of the following steps will add the action to the workflow file that’s alr
397
397
### Activity 1: Edit the custom action at the bottom of the workflow file.
398
398
399
399
```yaml
400
-
- name: ha-ha
401
-
uses: ./.github/actions/joke-action
400
+
- name: ha-ha
401
+
uses: ./.github/actions/joke-action
402
402
```
403
403
404
404
Here is what the full file should look like (we’re using issues instead of the pull request event and removing the reference to the hello world action.)
405
405
406
406
```yaml
407
407
name: JS Actions
408
+
408
409
on:
409
410
issues:
410
411
types: [labeled]
411
412
412
413
jobs:
413
414
action:
414
-
runs-on: ubuntu-latest
415
-
steps:
416
-
- uses: actions/checkout@v3
417
-
- name: ha-ha
418
-
uses: ./.github/actions/joke-action
415
+
if: ${{ !github.event.repository.is_template }}
416
+
runs-on: ubuntu-latest
417
+
418
+
steps:
419
+
- uses: actions/checkout@v3
420
+
- name: ha-ha
421
+
uses: ./.github/actions/joke-action
422
+
419
423
```
420
424
421
425
</details>
@@ -436,7 +440,7 @@ Everything is all set up and now we are ready to start laughing. You will find y
436
440
437
441
</details>
438
442
439
-
<details id=7>
443
+
<details id=X>
440
444
<summary><h2>Finish</h2></summary>
441
445
442
446
### Congratulations, you've completed this course!
0 commit comments