File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 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
33on :
44 push :
55 branches :
6- - main
6+ - master
77 schedule :
88 - cron : " 0 0 * * *" # Runs every day at midnight UTC
99
@@ -14,27 +14,27 @@ jobs:
1414 steps :
1515 - name : Check out repository
1616 uses : actions/checkout@v2
17-
17+
1818 - name : Node Install
1919 run : |
2020 # npm install
2121 npm ci
22-
22+
2323 - name : Generate package list
2424 run : |
2525 # Find the packages between the markers in the latest commit
2626 package_list=$(npm list --depth=0)
2727
2828 # Update the README.md file with the package list
2929 sed -i '/<!-- PACKAGES -->/,/<!-- END_PACKAGES -->/c\<!-- PACKAGES -->\n\n'```bash"${package_list}"```'\n\n<!-- END_PACKAGES -->' README.md
30-
30+
3131 - name : Commit changes
3232 run : |
3333 git config --local user.email "amirajubolchi001@gmail.com"
3434 git config --local user.name "Raju Ghorai"
3535 git add README.md
3636 git commit -m "Update package list" || true
37- git push origin HEAD:main
37+ git push origin HEAD:master
3838 env :
3939 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4040
You can’t perform that action at this time.
0 commit comments