Skip to content

Commit

Permalink
Update update-readme.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
whxitte authored Oct 30, 2024
1 parent 7894c96 commit 8f58c68
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
token: ${{ secrets.PAT_TOKEN }} # Use PAT_TOKEN for checkout

- name: Update README.md with latest version
id: update-readme
Expand All @@ -25,9 +27,11 @@ jobs:
sed -i "s|sudo dpkg -i .*|sudo dpkg -i ${deb_file}|" README.md
- name: Commit changes
env:
TOKEN: ${{ secrets.PAT_TOKEN }}
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git add README.md
git commit -m "Update README.md for release ${{ github.event.release.tag_name || 'manual update' }}"
git push
git push -u origin main # Ensure it pushes to the main branch

0 comments on commit 8f58c68

Please sign in to comment.