File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ permissions:
10
10
contents : write
11
11
actions : write
12
12
issues : write
13
+ pull-requests : write
13
14
14
15
env :
15
16
STEP_3_FILE : " .github/steps/3-create-your-own-conflict.md"
@@ -29,13 +30,34 @@ jobs:
29
30
steps :
30
31
- name : Checkout
31
32
uses : actions/checkout@v4
33
+ with :
34
+ fetch-depth : 0
35
+ ref : main # ensure base branch context
32
36
33
37
- name : Get response templates
34
38
uses : actions/checkout@v4
35
39
with :
36
40
repository : skills/exercise-toolkit
37
41
path : exercise-toolkit
38
42
ref : v0.5.0
43
+
44
+ - name : Create and push a new file on main
45
+ run : |
46
+ set -e
47
+
48
+ echo "Create new file"
49
+ printf "# References\n\n* octocat 1 😈" > references.md
50
+
51
+ echo "Commit file"
52
+ git config user.name github-actions[bot]
53
+ git config user.email github-actions[bot]@users.noreply.github.com
54
+ git add references.md
55
+ git commit -m "Add references.md"
56
+
57
+ echo "Push"
58
+ git push origin main
59
+ env :
60
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
61
40
62
- name : Create comment - add step content
41
63
run : |
You can’t perform that action at this time.
0 commit comments