File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Generate Package List
3
3
on :
4
4
push :
5
5
branches :
6
- - main
6
+ - master
7
7
schedule :
8
8
- cron : " 0 0 * * *" # Runs every day at midnight UTC
9
9
@@ -14,27 +14,27 @@ jobs:
14
14
steps :
15
15
- name : Check out repository
16
16
uses : actions/checkout@v2
17
-
17
+
18
18
- name : Node Install
19
19
run : |
20
20
# npm install
21
21
npm ci
22
-
22
+
23
23
- name : Generate package list
24
24
run : |
25
25
# Find the packages between the markers in the latest commit
26
26
package_list=$(npm list --depth=0)
27
27
28
28
# Update the README.md file with the package list
29
29
sed -i '/<!-- PACKAGES -->/,/<!-- END_PACKAGES -->/c\<!-- PACKAGES -->\n\n'```bash"${package_list}"```'\n\n<!-- END_PACKAGES -->' README.md
30
-
30
+
31
31
- name : Commit changes
32
32
run : |
33
33
git config --local user.email "amirajubolchi001@gmail.com"
34
34
git config --local user.name "Raju Ghorai"
35
35
git add README.md
36
36
git commit -m "Update package list" || true
37
- git push origin HEAD:main
37
+ git push origin HEAD:master
38
38
env :
39
39
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
40
You can’t perform that action at this time.
0 commit comments