-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 "[email protected]" | ||
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 |