Updates to match template (#13) · skills/write-javascript-actions@38879de · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Commit 38879de

Browse files
authored
Updates to match template (#13)
* Updates to match template * Add or update get current step jobs * Update job conditional to include current step * Update README.md * Update README.md
1 parent 4e5c04c commit 38879de

8 files changed

+21
-22
lines changed

.github/workflows/0-start.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
- name: Checkout
2727
uses: actions/checkout@v3
2828
- id: get_step
29-
run: echo "::set-output name=current_step::$(cat ./.github/script/STEP)"
29+
run: |
30+
echo "current_step=$(cat ./.github/script/STEP)" >> $GITHUB_OUTPUT
3031
outputs:
3132
current_step: ${{ steps.get_step.outputs.current_step }}
3233

@@ -37,7 +38,6 @@ jobs:
3738
# We will only run this action when:
3839
# 1. This repository isn't the template repository
3940
# 2. The STEP is currently 0
40-
# 3. This is the first workflow run on the repository
4141
# Reference https://docs.github.com/en/actions/learn-github-actions/contexts
4242
# Reference https://docs.github.com/en/actions/learn-github-actions/expressions
4343
if: >-

.github/workflows/1-initialize-javascript-project.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ permissions:
1919
contents: write
2020

2121
jobs:
22-
2322
get_current_step:
2423
name: Check current step number
2524
runs-on: ubuntu-latest
2625
steps:
2726
- name: Checkout
2827
uses: actions/checkout@v3
2928
- id: get_step
30-
run: echo "::set-output name=current_step::$(cat ./.github/script/STEP)"
29+
run: |
30+
echo "current_step=$(cat ./.github/script/STEP)" >> $GITHUB_OUTPUT
3131
outputs:
3232
current_step: ${{ steps.get_step.outputs.current_step }}
3333

.github/workflows/2-configure-your-action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ permissions:
1818
contents: write
1919

2020
jobs:
21-
2221
get_current_step:
2322
name: Check current step number
2423
runs-on: ubuntu-latest
2524
steps:
2625
- name: Checkout
2726
uses: actions/checkout@v3
2827
- id: get_step
29-
run: echo "::set-output name=current_step::$(cat ./.github/script/STEP)"
28+
run: |
29+
echo "current_step=$(cat ./.github/script/STEP)" >> $GITHUB_OUTPUT
3030
outputs:
3131
current_step: ${{ steps.get_step.outputs.current_step }}
3232

.github/workflows/3-create-metadata-file.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ env:
2020
EXPECTED_METADATA: outputs
2121

2222
jobs:
23-
2423
get_current_step:
2524
name: Check current step number
2625
runs-on: ubuntu-latest
2726
steps:
2827
- name: Checkout
2928
uses: actions/checkout@v3
3029
- id: get_step
31-
run: echo "::set-output name=current_step::$(cat ./.github/script/STEP)"
30+
run: |
31+
echo "current_step=$(cat ./.github/script/STEP)" >> $GITHUB_OUTPUT
3232
outputs:
3333
current_step: ${{ steps.get_step.outputs.current_step }}
3434

.github/workflows/4-create-javascript-files-for-action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ permissions:
1717
contents: write
1818

1919
jobs:
20-
2120
get_current_step:
2221
name: Check current step number
2322
runs-on: ubuntu-latest
2423
steps:
2524
- name: Checkout
2625
uses: actions/checkout@v3
2726
- id: get_step
28-
run: echo "::set-output name=current_step::$(cat ./.github/script/STEP)"
27+
run: |
28+
echo "current_step=$(cat ./.github/script/STEP)" >> $GITHUB_OUTPUT
2929
outputs:
3030
current_step: ${{ steps.get_step.outputs.current_step }}
3131

.github/workflows/5-add-action-to-workflow-file.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ env:
2020
EXPECTED_METADATA: ha-ha
2121

2222
jobs:
23-
2423
get_current_step:
2524
name: Check current step number
2625
runs-on: ubuntu-latest
2726
steps:
2827
- name: Checkout
2928
uses: actions/checkout@v3
3029
- id: get_step
31-
run: echo "::set-output name=current_step::$(cat ./.github/script/STEP)"
30+
run: |
31+
echo "current_step=$(cat ./.github/script/STEP)" >> $GITHUB_OUTPUT
3232
outputs:
3333
current_step: ${{ steps.get_step.outputs.current_step }}
3434

.github/workflows/6-trigger-action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ env:
2020
EXPECTED_METADATA: "second joke"
2121

2222
jobs:
23-
2423
get_current_step:
2524
name: Check current step number
2625
runs-on: ubuntu-latest
2726
steps:
2827
- name: Checkout
2928
uses: actions/checkout@v3
3029
- id: get_step
31-
run: echo "::set-output name=current_step::$(cat ./.github/script/STEP)"
30+
run: |
31+
echo "current_step=$(cat ./.github/script/STEP)" >> $GITHUB_OUTPUT
3232
outputs:
3333
current_step: ${{ steps.get_step.outputs.current_step }}
3434

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
# GitHub Actions: Writing JavaScript Actions
1010

11-
1211
<!--
1312
<<< Author notes: Start of the course >>>
1413
Include start button, a note about Actions minutes,
@@ -18,27 +17,27 @@
1817
Do not use quotes on the <details> tag attributes.
1918
-->
2019

21-
<!--step0-->
20+
<details id=0 open>
21+
<summary><h2>Welcome</h2></summary>
2222

2323
Write your own GitHub JavaScript Action and automate customized tasks unique to your workflow.
2424

2525
- **Who is this for**: Developers, GitHub users, users new to Git, students, managers, and for teams.
2626
- **What you'll learn**: How to consume actions within a workflow file, create custom JavaScript based actions and publish your newly created action to the marketplace.
2727
- **Prerequisites**: Before you start, you should be familiar with GitHub, GitHub Actions, and Continuous Integration with GitHub Actions.
28-
- **How long**: This course is 6 steps long and takes about 1 to 2 hours to be completed.
28+
- **How long**: This course is 6 steps long and takes about 1 to 2 hours to be completed.
2929

3030
## How to start this course
3131

32-
1. Above these instructions, right-click **Use this template** and open the link in a new tab.
33-
![Use this template](https://user-images.githubusercontent.com/1221423/169618716-fb17528d-f332-4fc5-a11a-eaa23562665e.png)
32+
1. Right-click **Start course** and open the link in a new tab.
33+
<br />[![start-course](https://user-images.githubusercontent.com/1221423/218596841-0645fe1a-4aaf-4f51-9ab3-8aa2d3fdd487.svg)](https://github.com/skills/writing-javacript-actions/generate)
3434
2. In the new tab, follow the prompts to create a new repository.
3535
- For owner, choose your personal account or an organization to host the repository.
36-
- You must check the Include all branches checkbox when creating your new respository from this template.
3736
- We recommend creating a public repository—private repositories will [use Actions minutes](https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions).
38-
![Create a new repository](https://user-images.githubusercontent.com/1221423/169618722-406dc508-add4-4074-83f0-c7a7ad87f6f3.png)
37+
![Create a new repository](https://user-images.githubusercontent.com/1221423/218594143-e60462b6-9f2a-4fa3-80de-063ac5429aab.png)
3938
3. After your new repository is created, wait about 20 seconds, then refresh the page. Follow the step-by-step instructions in the new repository's README.
4039

41-
<!--endstep0-->
40+
</details>
4241

4342

4443
<!--

0 commit comments

Comments
 (0)

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.