Skip to content

Commit

Permalink
ci: split workflow and add PAT back in
Browse files Browse the repository at this point in the history
  • Loading branch information
sacklippe committed May 16, 2024
1 parent f7deb68 commit bb30eea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/update-badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,17 @@ jobs:
run: |
VALUE=${{ steps.read-value.outputs.value }}
sed -i "s/git_lifts-[^)]*/git_lifts-${VALUE}-blue/" README.md
- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add README.md
git commit -m "docs(ci): update git lift badge value to ${VALUE}"
- name: Push changes
env:
PAT_TOKEN: ${{ secrets.ACTION_PAT }}
run: |
git remote set-url origin https://x-access-token:${PAT_TOKEN}@github.com/${{ github.repository }}
git push

0 comments on commit bb30eea

Please sign in to comment.