File tree Expand file tree Collapse file tree 6 files changed +54
-61
lines changed Expand file tree Collapse file tree 6 files changed +54
-61
lines changed Original file line number Diff line number Diff line change 12
12
branches :
13
13
- main
14
14
15
+ # Reference https://docs.github.com/en/actions/security-guides/automatic-token-authentication
15
16
permissions :
16
17
# Need `contents: read` to checkout the repository
17
18
# Need `contents: write` to update the step metadata
25
26
# 1. This repository isn't the template repository
26
27
# Reference https://docs.github.com/en/actions/learn-github-actions/contexts
27
28
# Reference https://docs.github.com/en/actions/learn-github-actions/expressions
28
- if : ${{ github.repository_owner != 'githublearn' }}
29
- # TBD replace `githublearn` with your organization name, if applicable
29
+ if : ${{ !github.event.repository.is_template }}
30
30
31
31
# We'll run Ubuntu for performance instead of Mac or Windows
32
32
runs-on : ubuntu-latest
@@ -40,14 +40,12 @@ jobs:
40
40
41
41
# TBD-course-set-up
42
42
43
- # Update README to close <details id=0>
44
- # and open <details id=1>
43
+ # Update README to close <details id=0> and open <details id=1>
45
44
# and set STEP to '1'
46
45
- name : Update to step 1
47
- uses : githublearn/action-update-step@v1.0.2
48
- env :
49
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50
- GITHUB_REPOSITORY : ${{ env.GITHUB_REPOSITORY }}
51
- FROM_STEP : 0
52
- TO_STEP : 1
53
- BRANCH_NAME : TBD-branch-name
46
+ uses : githublearn/action-update-step@v1
47
+ with :
48
+ token : ${{ secrets.GITHUB_TOKEN }}
49
+ from_step : 0
50
+ to_step : 1
51
+ branch_name : tbd-branch-name
Original file line number Diff line number Diff line change 10
10
workflow_dispatch :
11
11
TBD-step-1-event :
12
12
13
+ # Reference https://docs.github.com/en/actions/security-guides/automatic-token-authentication
13
14
permissions :
14
15
# Need `contents: read` to checkout the repository
15
16
# Need `contents: write` to update the step metadata
23
24
# 1. This repository isn't the template repository
24
25
# Reference https://docs.github.com/en/actions/learn-github-actions/contexts
25
26
# Reference https://docs.github.com/en/actions/learn-github-actions/expressions
26
- if : ${{ github.repository_owner != 'TBD-organization' }}
27
+ if : ${{ ! github.event.repository.is_template }}
27
28
28
29
# We'll run Ubuntu for performance instead of Mac or Windows
29
30
runs-on : ubuntu-latest
@@ -37,14 +38,12 @@ jobs:
37
38
38
39
# TBD-step-1-additional-steps
39
40
40
- # Update README to close <details id=1>
41
- # and open <details id=2>
41
+ # Update README to close <details id=1> and open <details id=2>
42
42
# and set STEP to '2'
43
43
- name : Update to step 2
44
- uses : githublearn/action-update-step@v1.0.2
45
- env :
46
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
- GITHUB_REPOSITORY : ${{ env.GITHUB_REPOSITORY }}
48
- FROM_STEP : 1
49
- TO_STEP : 2
50
- BRANCH_NAME : TBD-branch-name
44
+ uses : githublearn/action-update-step@v1
45
+ with :
46
+ token : ${{ secrets.GITHUB_TOKEN }}
47
+ from_step : 1
48
+ to_step : 2
49
+ branch_name : tbd-branch-name
Original file line number Diff line number Diff line change 10
10
workflow_dispatch :
11
11
TBD-step-2-event :
12
12
13
+ # Reference https://docs.github.com/en/actions/security-guides/automatic-token-authentication
13
14
permissions :
14
15
# Need `contents: read` to checkout the repository
15
16
# Need `contents: write` to update the step metadata
23
24
# 1. This repository isn't the template repository
24
25
# Reference https://docs.github.com/en/actions/learn-github-actions/contexts
25
26
# Reference https://docs.github.com/en/actions/learn-github-actions/expressions
26
- if : ${{ github.repository_owner != 'TBD-organization' }}
27
+ if : ${{ ! github.event.repository.is_template }}
27
28
28
29
# We'll run Ubuntu for performance instead of Mac or Windows
29
30
runs-on : ubuntu-latest
@@ -37,14 +38,12 @@ jobs:
37
38
38
39
# TBD-step-2-additional-steps
39
40
40
- # Update README to close <details id=2>
41
- # and open <details id=3>
41
+ # Update README to close <details id=2> and open <details id=3>
42
42
# and set STEP to '3'
43
43
- name : Update to step 3
44
- uses : githublearn/action-update-step@v1.0.2
45
- env :
46
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
- GITHUB_REPOSITORY : ${{ env.GITHUB_REPOSITORY }}
48
- FROM_STEP : 2
49
- TO_STEP : 3
50
- BRANCH_NAME : TBD-branch-name
44
+ uses : githublearn/action-update-step@v1
45
+ with :
46
+ token : ${{ secrets.GITHUB_TOKEN }}
47
+ from_step : 2
48
+ to_step : 3
49
+ branch_name : tbd-branch-name
Original file line number Diff line number Diff line change 10
10
workflow_dispatch :
11
11
TBD-step-3-event :
12
12
13
+ # Reference https://docs.github.com/en/actions/security-guides/automatic-token-authentication
13
14
permissions :
14
15
# Need `contents: read` to checkout the repository
15
16
# Need `contents: write` to update the step metadata
23
24
# 1. This repository isn't the template repository
24
25
# Reference https://docs.github.com/en/actions/learn-github-actions/contexts
25
26
# Reference https://docs.github.com/en/actions/learn-github-actions/expressions
26
- if : ${{ github.repository_owner != 'TBD-organization' }}
27
+ if : ${{ ! github.event.repository.is_template }}
27
28
28
29
# We'll run Ubuntu for performance instead of Mac or Windows
29
30
runs-on : ubuntu-latest
@@ -37,14 +38,12 @@ jobs:
37
38
38
39
# TBD-step-3-additional-steps
39
40
40
- # Update README to close <details id=3>
41
- # and open <details id=4>
41
+ # Update README to close <details id=3> and open <details id=4>
42
42
# and set STEP to '4'
43
43
- name : Update to step 4
44
- uses : githublearn/action-update-step@v1.0.2
45
- env :
46
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
- GITHUB_REPOSITORY : ${{ env.GITHUB_REPOSITORY }}
48
- FROM_STEP : 3
49
- TO_STEP : 4
50
- BRANCH_NAME : TBD-branch-name
44
+ uses : githublearn/action-update-step@v1
45
+ with :
46
+ token : ${{ secrets.GITHUB_TOKEN }}
47
+ from_step : 3
48
+ to_step : 4
49
+ branch_name : tbd-branch-name
Original file line number Diff line number Diff line change 10
10
workflow_dispatch :
11
11
TBD-step-4-event :
12
12
13
+ # Reference https://docs.github.com/en/actions/security-guides/automatic-token-authentication
13
14
permissions :
14
15
# Need `contents: read` to checkout the repository
15
16
# Need `contents: write` to update the step metadata
23
24
# 1. This repository isn't the template repository
24
25
# Reference https://docs.github.com/en/actions/learn-github-actions/contexts
25
26
# Reference https://docs.github.com/en/actions/learn-github-actions/expressions
26
- if : ${{ github.repository_owner != 'TBD-organization' }}
27
+ if : ${{ ! github.event.repository.is_template }}
27
28
28
29
# We'll run Ubuntu for performance instead of Mac or Windows
29
30
runs-on : ubuntu-latest
@@ -37,14 +38,12 @@ jobs:
37
38
38
39
# TBD-step-4-additional-steps
39
40
40
- # Update README to close <details id=4>
41
- # and open <details id=5>
41
+ # Update README to close <details id=4> and open <details id=5>
42
42
# and set STEP to '5'
43
43
- name : Update to step 5
44
- uses : githublearn/action-update-step@v1.0.2
45
- env :
46
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
- GITHUB_REPOSITORY : ${{ env.GITHUB_REPOSITORY }}
48
- FROM_STEP : 4
49
- TO_STEP : 5
50
- BRANCH_NAME : TBD-branch-name
44
+ uses : githublearn/action-update-step@v1
45
+ with :
46
+ token : ${{ secrets.GITHUB_TOKEN }}
47
+ from_step : 4
48
+ to_step : 5
49
+ branch_name : tbd-branch-name
Original file line number Diff line number Diff line change 12
12
branches :
13
13
- main
14
14
15
+ # Reference https://docs.github.com/en/actions/security-guides/automatic-token-authentication
15
16
permissions :
16
17
# Need `contents: read` to checkout the repository
17
18
# Need `contents: write` to update the step metadata
25
26
# 1. This repository isn't the template repository
26
27
# Reference https://docs.github.com/en/actions/learn-github-actions/contexts
27
28
# Reference https://docs.github.com/en/actions/learn-github-actions/expressions
28
- if : ${{ github.repository_owner != 'githublearn' }}
29
+ if : ${{ ! github.event.repository.is_template }}
29
30
# TBD replace `githublearn` with your organization name, if applicable
30
31
31
32
# We'll run Ubuntu for performance instead of Mac or Windows
@@ -38,14 +39,12 @@ jobs:
38
39
with :
39
40
fetch-depth : 0 # Let's get all the branches
40
41
41
- # Update README to close <details id=5>
42
- # and open <details id=X>
42
+ # Update README to close <details id=5> and open <details id=X>
43
43
# and set STEP to 'X'
44
44
- name : Update to step X
45
- uses : githublearn/action-update-step@v1.0.2
46
- env :
47
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48
- GITHUB_REPOSITORY : ${{ env.GITHUB_REPOSITORY }}
49
- FROM_STEP : 5
50
- TO_STEP : X
51
- BRANCH_NAME : TBD-branch-name
45
+ uses : githublearn/action-update-step@v1
46
+ with :
47
+ token : ${{ secrets.GITHUB_TOKEN }}
48
+ from_step : 5
49
+ to_step : X
50
+ branch_name : tbd-branch-name
You can’t perform that action at this time.
0 commit comments