diff --git a/.github/workflows/0-start.yml b/.github/workflows/0-start.yml index d134ed0..497435a 100644 --- a/.github/workflows/0-start.yml +++ b/.github/workflows/0-start.yml @@ -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 }} @@ -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: >- diff --git a/.github/workflows/1-initialize-javascript-project.yml b/.github/workflows/1-initialize-javascript-project.yml index 999fa6c..4f09b51 100644 --- a/.github/workflows/1-initialize-javascript-project.yml +++ b/.github/workflows/1-initialize-javascript-project.yml @@ -19,7 +19,6 @@ permissions: contents: write jobs: - get_current_step: name: Check current step number runs-on: ubuntu-latest @@ -27,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 }} diff --git a/.github/workflows/2-configure-your-action.yml b/.github/workflows/2-configure-your-action.yml index 80bdbc9..3061fb3 100644 --- a/.github/workflows/2-configure-your-action.yml +++ b/.github/workflows/2-configure-your-action.yml @@ -18,7 +18,6 @@ permissions: contents: write jobs: - get_current_step: name: Check current step number runs-on: ubuntu-latest @@ -26,7 +25,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 }} diff --git a/.github/workflows/3-create-metadata-file.yml b/.github/workflows/3-create-metadata-file.yml index 94f7fa9..f197f83 100644 --- a/.github/workflows/3-create-metadata-file.yml +++ b/.github/workflows/3-create-metadata-file.yml @@ -20,7 +20,6 @@ env: EXPECTED_METADATA: outputs jobs: - get_current_step: name: Check current step number runs-on: ubuntu-latest @@ -28,7 +27,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 }} diff --git a/.github/workflows/4-create-javascript-files-for-action.yml b/.github/workflows/4-create-javascript-files-for-action.yml index c34ac1a..b383e76 100644 --- a/.github/workflows/4-create-javascript-files-for-action.yml +++ b/.github/workflows/4-create-javascript-files-for-action.yml @@ -17,7 +17,6 @@ permissions: contents: write jobs: - get_current_step: name: Check current step number runs-on: ubuntu-latest @@ -25,7 +24,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 }} diff --git a/.github/workflows/5-add-action-to-workflow-file.yml b/.github/workflows/5-add-action-to-workflow-file.yml index 818bac9..321f7db 100644 --- a/.github/workflows/5-add-action-to-workflow-file.yml +++ b/.github/workflows/5-add-action-to-workflow-file.yml @@ -20,7 +20,6 @@ env: EXPECTED_METADATA: ha-ha jobs: - get_current_step: name: Check current step number runs-on: ubuntu-latest @@ -28,7 +27,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 }} diff --git a/.github/workflows/6-trigger-action.yml b/.github/workflows/6-trigger-action.yml index a45d246..92ba181 100644 --- a/.github/workflows/6-trigger-action.yml +++ b/.github/workflows/6-trigger-action.yml @@ -20,7 +20,6 @@ env: EXPECTED_METADATA: "second joke" jobs: - get_current_step: name: Check current step number runs-on: ubuntu-latest @@ -28,7 +27,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 }} diff --git a/README.md b/README.md index eb0ac45..9910272 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,6 @@ # GitHub Actions: Writing JavaScript Actions - - +
+

Welcome

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. +
[![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. - +