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 2653474 commit 998bf59
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 49 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 @@ -26,7 +26,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 @@ -76,9 +75,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: cd
4 changes: 2 additions & 2 deletions .github/workflows/1-create-the-workflow-file.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 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 All @@ -51,9 +50,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: cd
4 changes: 2 additions & 2 deletions .github/workflows/2-add-a-dockerfile.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 @@ -51,9 +50,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: cd
1 change: 0 additions & 1 deletion .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 Down

0 comments on commit 998bf59

Please sign in to comment.