Skip to content

Commit 3a43000

Browse files
committed
🐞 Bug Fixes: update .github config
1 parent a695a28 commit 3a43000

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/package-list.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Generate Package List
33
on:
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

0 commit comments

Comments
 (0)