-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 914 Bytes
/
Boards.yml
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
name: Generate boards.json
on: push
# on:
# schedule:
# - cron: '0 0 * * 0' # Every week
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
- name: Install dependencies
run: gem install nokogiri
- name: Configure git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git config --global credential.helper store
echo 'https://token:${{ secrets.GITHUB_TOKEN }}@github.com' > ~/.git-credentials
- name: Generate boards.json
run: ruby .github/boards.rb
- name: Commit and push updated boards.json
run: |
git commit -o boards.json -m "Update boards.json" || true
git push