Skip to content

Commit

Permalink
fix(push-workflows): Use GH_PAT directly
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Feb 19, 2024
1 parent 4f0bcdf commit b9ddf83
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/document.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
if: ${{ inputs.run }}
name: 📖 Document
runs-on: ubuntu-latest
env:
GH_PAT: ${{ secrets.GH_PAT }}

steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -48,4 +47,5 @@ jobs:
git switch ${{ inputs.branch_name }}
git add man/\* NAMESPACE DESCRIPTION
git commit -m "docs: update documentation" || 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 }}
6 changes: 3 additions & 3 deletions .github/workflows/render-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
5 changes: 2 additions & 3 deletions .github/workflows/update-lockfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
name: 🛠️ Store dependency versions
if: ${{ inputs.run }}
runs-on: ubuntu-latest
env:
GH_PAT: ${{ secrets.GH_PAT }}

steps:
- name: Checkout repo
Expand Down Expand Up @@ -48,4 +46,5 @@ jobs:
git switch ${{ inputs.branch_name }}
git add pak.lock
git commit -m "chore: update pak.lock" || 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 }}

0 comments on commit b9ddf83

Please sign in to comment.