Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to match template #13

Merged
merged 5 commits into from
Feb 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/0-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- id: get_step
run: echo "::set-output name=current_step::$(cat ./.github/script/STEP)"
run: |
echo "current_step=$(cat ./.github/script/STEP)" >> $GITHUB_OUTPUT
outputs:
current_step: ${{ steps.get_step.outputs.current_step }}

Expand All @@ -37,7 +38,6 @@ jobs:
# We will only run this action when:
# 1. This repository isn't the template repository
# 2. The STEP is currently 0
# 3. This is the first workflow run on the repository
# Reference https://docs.github.com/en/actions/learn-github-actions/contexts
# Reference https://docs.github.com/en/actions/learn-github-actions/expressions
if: >-
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/1-initialize-javascript-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ permissions:
contents: write

jobs:

get_current_step:
name: Check current step number
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- id: get_step
run: echo "::set-output name=current_step::$(cat ./.github/script/STEP)"
run: |
echo "current_step=$(cat ./.github/script/STEP)" >> $GITHUB_OUTPUT
outputs:
current_step: ${{ steps.get_step.outputs.current_step }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/2-configure-your-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ permissions:
contents: write

jobs:

get_current_step:
name: Check current step number
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- id: get_step
run: echo "::set-output name=current_step::$(cat ./.github/script/STEP)"
run: |
echo "current_step=$(cat ./.github/script/STEP)" >> $GITHUB_OUTPUT
outputs:
current_step: ${{ steps.get_step.outputs.current_step }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/3-create-metadata-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ env:
EXPECTED_METADATA: outputs

jobs:

get_current_step:
name: Check current step number
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- id: get_step
run: echo "::set-output name=current_step::$(cat ./.github/script/STEP)"
run: |
echo "current_step=$(cat ./.github/script/STEP)" >> $GITHUB_OUTPUT
outputs:
current_step: ${{ steps.get_step.outputs.current_step }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/4-create-javascript-files-for-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ permissions:
contents: write

jobs:

get_current_step:
name: Check current step number
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- id: get_step
run: echo "::set-output name=current_step::$(cat ./.github/script/STEP)"
run: |
echo "current_step=$(cat ./.github/script/STEP)" >> $GITHUB_OUTPUT
outputs:
current_step: ${{ steps.get_step.outputs.current_step }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/5-add-action-to-workflow-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ env:
EXPECTED_METADATA: ha-ha

jobs:

get_current_step:
name: Check current step number
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- id: get_step
run: echo "::set-output name=current_step::$(cat ./.github/script/STEP)"
run: |
echo "current_step=$(cat ./.github/script/STEP)" >> $GITHUB_OUTPUT
outputs:
current_step: ${{ steps.get_step.outputs.current_step }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/6-trigger-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ env:
EXPECTED_METADATA: "second joke"

jobs:

get_current_step:
name: Check current step number
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- id: get_step
run: echo "::set-output name=current_step::$(cat ./.github/script/STEP)"
run: |
echo "current_step=$(cat ./.github/script/STEP)" >> $GITHUB_OUTPUT
outputs:
current_step: ${{ steps.get_step.outputs.current_step }}

Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

# GitHub Actions: Writing JavaScript Actions


<!--
<<< Author notes: Start of the course >>>
Include start button, a note about Actions minutes,
Expand All @@ -18,27 +17,27 @@
Do not use quotes on the <details> tag attributes.
-->

<!--step0-->
<details id=0 open>
<summary><h2>Welcome</h2></summary>

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

- **Who is this for**: Developers, GitHub users, users new to Git, students, managers, and for teams.
- **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.
- **Prerequisites**: Before you start, you should be familiar with GitHub, GitHub Actions, and Continuous Integration with GitHub Actions.
- **How long**: This course is 6 steps long and takes about 1 to 2 hours to be completed.
- **How long**: This course is 6 steps long and takes about 1 to 2 hours to be completed.

## How to start this course

1. Above these instructions, right-click **Use this template** and open the link in a new tab.
![Use this template](https://user-images.githubusercontent.com/1221423/169618716-fb17528d-f332-4fc5-a11a-eaa23562665e.png)
1. Right-click **Start course** and open the link in a new tab.
<br />[![start-course](https://user-images.githubusercontent.com/1221423/218596841-0645fe1a-4aaf-4f51-9ab3-8aa2d3fdd487.svg)](https://github.com/skills/writing-javacript-actions/generate)
2. In the new tab, follow the prompts to create a new repository.
- For owner, choose your personal account or an organization to host the repository.
- You must check the Include all branches checkbox when creating your new respository from this template.
- 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).
![Create a new repository](https://user-images.githubusercontent.com/1221423/169618722-406dc508-add4-4074-83f0-c7a7ad87f6f3.png)
![Create a new repository](https://user-images.githubusercontent.com/1221423/218594143-e60462b6-9f2a-4fa3-80de-063ac5429aab.png)
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.

<!--endstep0-->
</details>


<!--
Expand Down