Skip to content

Commit

Permalink
Use action-update-step
Browse files Browse the repository at this point in the history
  • Loading branch information
heiskr committed Mar 4, 2022
1 parent 8b63f3f commit 994d63f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 50 deletions.
42 changes: 0 additions & 42 deletions .github/script/update-step.sh

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/0-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:

# We will only run this action when:
# 1. This repository isn't the template repository
# 2. The STEP is currently '0' (see update-step.sh)
# Reference https://docs.github.com/en/actions/learn-github-actions/contexts
# Reference https://docs.github.com/en/actions/learn-github-actions/expressions
if: ${{ github.repository_owner != 'githublearn' }}
Expand Down Expand Up @@ -86,9 +85,10 @@ jobs:
# and open <details id=1>
# and set STEP to '1'
- name: Update to step 1
run: ./.github/script/update-step.sh
uses: githublearn/action-update-step@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ env.GITHUB_REPOSITORY }}
FROM_STEP: 0
TO_STEP: 1
BRANCH_NAME: my-resume
4 changes: 2 additions & 2 deletions .github/workflows/1-resolve-a-merge-conflict.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:

# We will only run this action when:
# 1. This repository isn't the template repository
# 2. The STEP is currently 1 (see update-step.sh)
# Reference https://docs.github.com/en/actions/learn-github-actions/contexts
# Reference https://docs.github.com/en/actions/learn-github-actions/expressions
if: ${{ github.repository_owner != 'githublearn' }}
Expand Down Expand Up @@ -70,9 +69,10 @@ jobs:
# and open <details id=2>
# and set STEP to '2'
- name: Update to step 2
run: ./.github/script/update-step.sh
uses: githublearn/action-update-step@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ env.GITHUB_REPOSITORY }}
FROM_STEP: 1
TO_STEP: 2
BRANCH_NAME: my-resume
4 changes: 2 additions & 2 deletions .github/workflows/2-create-your-own-conflict.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:

# We will only run this action when:
# 1. This repository isn't the template repository
# 2. The STEP is currently 2 (see update-step.sh)
# Reference https://docs.github.com/en/actions/learn-github-actions/contexts
# Reference https://docs.github.com/en/actions/learn-github-actions/expressions
if: ${{ github.repository_owner != 'githublearn' }}
Expand All @@ -45,9 +44,10 @@ jobs:
# and open <details id=3>
# and set STEP to '3'
- name: Update to step 3
run: ./.github/script/update-step.sh
uses: githublearn/action-update-step@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ env.GITHUB_REPOSITORY }}
FROM_STEP: 2
TO_STEP: 3
BRANCH_NAME: my-resume
4 changes: 2 additions & 2 deletions .github/workflows/3-merge-your-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:

# We will only run this action when:
# 1. This repository isn't the template repository
# 2. The STEP is currently 3 (see update-step.sh)
# Reference https://docs.github.com/en/actions/learn-github-actions/contexts
# Reference https://docs.github.com/en/actions/learn-github-actions/expressions
if: ${{ github.repository_owner != 'githublearn' }}
Expand All @@ -42,9 +41,10 @@ jobs:
# and open <details id=X>
# and set STEP to 'X'
- name: Update to step X
run: ./.github/script/update-step.sh
uses: githublearn/action-update-step@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ env.GITHUB_REPOSITORY }}
FROM_STEP: 3
TO_STEP: X
BRANCH_NAME: my-resume

0 comments on commit 994d63f

Please sign in to comment.