Compare commits

...

3 Commits

Author SHA1 Message Date
Jesse Duffield
44d30173c9 WIP 2024-03-09 20:38:15 +11:00
Jesse Duffield
6bc85e6a21 Test 2024-03-09 20:27:41 +11:00
Jesse Duffield
271ca55512 Fix sponsors CI
this was failing because you need sufficient permissions to push to a
protected branch
2024-03-09 20:26:05 +11:00

View File

@@ -1,15 +1,24 @@
# see https://github.com/JamesIves/github-sponsors-readme-action
name: Generate Sponsors README
on:
push:
branches:
- master
pull_request: # Add this if you want to run checks on PRs as well
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
ref: master # This ensures the checkout step fetches the master branch
- name: Switch to master branch
run: |
git fetch origin master:refs/remotes/origin/master
git checkout master
- name: Generate Sponsors 💖
uses: JamesIves/github-sponsors-readme-action@v1.2.2
@@ -24,5 +33,7 @@ jobs:
git config --global user.email "actions@users.noreply.github.com"
git config --global user.name "README-bot"
git add README.md
git commit -m "Updated README.md" || exit 0
git push
git commit -m "Updated README.md [skip ci]" || exit 0
git push origin master # Explicitly push to master branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_API_TOKEN }}