Skip to content

Commit

Permalink
Merge pull request #1 from Ripern1/dependabot/github_actions/actions/…
Browse files Browse the repository at this point in the history
…checkout-4

Bump actions/checkout from 3 to 4
  • Loading branch information
Ripern1 authored Oct 1, 2023
2 parents 9ccdc6e + 47bf6d6 commit c1202d8
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/0-welcome.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Step 0, Welcome
name: Step 1, Welcome

# This step triggers after the learner creates a new repository from the template.
# This workflow updates from step 0 to step 1.
Expand All @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: get_step
run: |
echo "current_step=$(cat ./.github/steps/-step.txt)" >> $GITHUB_OUTPUT
Expand All @@ -37,20 +37,20 @@ jobs:

# We will only run this action when:
# 1. This repository isn't the template repository.
# 2. The step is currently 0.
# 2. The step is currently 3.
# Reference: https://docs.github.com/en/actions/learn-github-actions/contexts
# Reference: https://docs.github.com/en/actions/learn-github-actions/expressions
if: >-
${{ !github.event.repository.is_template
&& needs.get_current_step.outputs.current_step == 0 }}
&& needs.get_current_step.outputs.current_step == 3 }}
# We'll run Ubuntu for performance instead of Mac or Windows.
runs-on: ubuntu-latest

steps:
# We'll need to check out the repository so that we can edit README.md.
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # Let's get all the branches.

Expand All @@ -59,6 +59,6 @@ jobs:
uses: skills/action-update-step@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
from_step: 0
to_step: 1
from_step: 1
to_step: 2
branch_name: my-first-branch
4 changes: 2 additions & 2 deletions .github/workflows/1-create-a-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: get_step
run: |
echo "current_step=$(cat ./.github/steps/-step.txt)" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
steps:
# We'll need to check out the repository so that we can edit the README.
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # Let's get all the branches.

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/2-commit-a-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: get_step
run: |
echo "current_step=$(cat ./.github/steps/-step.txt)" >> $GITHUB_OUTPUT
Expand All @@ -50,7 +50,7 @@ jobs:
steps:
# We'll need to check out the repository so that we can edit the README.
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # Let's get all the branches.

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/3-open-a-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: get_step
run: |
echo "current_step=$(cat ./.github/steps/-step.txt)" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
steps:
# We'll need to check out the repository so that we can edit the README.
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # Let's get all the branches.
ref: my-first-branch # Important, as normally `pull_request` event won't grab other branches.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/4-merge-your-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: get_step
run: |
echo "current_step=$(cat ./.github/steps/-step.txt)" >> $GITHUB_OUTPUT
Expand All @@ -50,7 +50,7 @@ jobs:
steps:
# We'll need to check out the repository so that we can edit the README.
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # Let's get all the branches.

Expand Down

0 comments on commit c1202d8

Please sign in to comment.