-
-
Notifications
You must be signed in to change notification settings - Fork 625
40 lines (36 loc) · 1.25 KB
/
opencollective.yml
File metadata and controls
40 lines (36 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Open Collective Backers
on:
schedule:
# Run once a week on Sunday at 12:00 AM UTC
- cron: '0 0 * * 0'
workflow_dispatch:
permissions:
contents: write
jobs:
update-backers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Setup Ruby & RubyGems
uses: ruby/setup-ruby@v1.302.0
with:
ruby-version: ruby
rubygems: default
bundler: default
bundler-cache: true
- name: README Update
env:
# Keep GITHUB_TOKEN for any tools/scripts expecting it, mapped to the same secret
GITHUB_TOKEN: ${{ secrets.README_UPDATER_TOKEN }}
README_UPDATER_TOKEN: ${{ secrets.README_UPDATER_TOKEN }}
REPO: ${{ github.repository }}
run: |
git config user.name 'autobolt'
git config user.email 'autobots@9thbit.net'
# Use the configured token for authenticated pushes
git remote set-url origin "https://x-access-token:${README_UPDATER_TOKEN}@github.com/${REPO}.git"
bin/kettle-readme-backers
# Push back to the same branch/ref that triggered the workflow (default branch for schedule)
git push origin HEAD