-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(push-workflows): Use GH_PAT directly
- Loading branch information
1 parent
4f0bcdf
commit b9ddf83
Showing
3 changed files
with
8 additions
and
9 deletions.
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
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 |
---|---|---|
|
@@ -13,8 +13,7 @@ jobs: | |
if: ${{ inputs.run }} | ||
name: 📖 README | ||
runs-on: ubuntu-latest | ||
env: | ||
GH_PAT: ${{ secrets.GH_PAT }} | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
@@ -61,4 +60,5 @@ jobs: | |
git config --local user.email "[email protected]" | ||
git switch ${{ inputs.branch_name }} | ||
git commit README.md -m 'docs(README): Re-build README.Rmd' || echo "No changes to commit" | ||
git push | ||
git remote set-url origin https://$GITHUB_ACTOR:${{ secrets.GH_PAT }}@github.com/$GITHUB_REPOSITORY.git | ||
git push origin ${{ inputs.branch_name }} |
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