Skip to content

Commit c28c2a0

Browse files
authored
fix: use PAT to push so that it triggers following workflow
1 parent 649096e commit c28c2a0

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/auto-writer.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
steps:
1212
- name: Checkout repository
1313
uses: actions/checkout@v4
14+
with:
15+
token: ${{ secrets.PAT }}
1416
- name: Install Python libraries
1517
run: |
1618
pip install openai bs4 requests pyyaml
@@ -20,14 +22,9 @@ jobs:
2022
run: |
2123
python3 writer.py
2224
- name: Commit and push changes
23-
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2525
run: |
2626
git config user.name "github-actions[bot]"
2727
git config user.email "github-actions[bot]@users.noreply.github.com"
2828
git add .
2929
git commit -m "feat(auto): created new article" || echo "no changes to commit"
3030
git push origin HEAD:main
31-
compile:
32-
needs: write_article
33-
uses: ./.github/workflows/publ.yml

0 commit comments

Comments
 (0)