@@ -20,30 +20,13 @@ permissions:
20
20
contents : write
21
21
22
22
jobs :
23
- # The purpose of this job is to output the current step number
24
- # (retreived from the step file). This output variable can
25
- # then be referenced in other jobs and used in conditional
26
- # expressions.
27
- get_current_step :
28
- name : Check current step number
29
- runs-on : ubuntu-latest
30
- steps :
31
- - name : Checkout
32
- uses : actions/checkout@v4
33
- - id : get_step
34
- run : echo "current_step=$(cat ./.github/steps/-step.txt)" >> $GITHUB_OUTPUT
35
- outputs :
36
- current_step : ${{ steps.get_step.outputs.current_step }}
37
-
38
- on_Copilothubsuggestions :
23
+ on_Copilot_hub_suggestion :
39
24
name : On Copilot hub suggestion
40
- needs : get_current_step
41
25
42
26
# We will only run this action when:
43
27
# 1. This repository isn't the template repository.
44
28
# Reference: https://docs.github.com/en/actions/learn-github-actions/contexts
45
29
# Reference: https://docs.github.com/en/actions/learn-github-actions/expressions
46
- if : ${{ !github.event.repository.is_template && needs.get_current_step.outputs.current_step == 3 }}
47
30
48
31
# We'll run Ubuntu for performance instead of Mac or Windows.
49
32
runs-on : ubuntu-latest
55
38
with :
56
39
fetch-depth : 0 # Let's get all the branches.
57
40
58
- # Verify the skills member function is present.
59
- - name : Check package for axios version 0.21.2
60
- uses : skills/action-check-file@v1
61
- with :
62
- file : " member.js"
63
- search : " skillsMember"
64
-
65
- # In README.md, switch step 3 for step 4.
66
41
- name : Update to step 4
67
42
uses : skills/action-update-step@v2
68
43
with :
0 commit comments