mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +02:00
7d79a489eb
[why] It's a pain to have the addition of contributors automated via all-contributors bot, but then it does not end up on the webpage. [how] I'm not sure it will automatically be triggered (pretty sure it will not), but at least one can clickstart manually the workflow. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Update contributors
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- CONTRIBUTORS.md
|
|
- bin/scripts/update-all-contributors-website.py
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
create-casks:
|
|
name: Update gh-pages contributors
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Fetch from master
|
|
uses: Bhacaz/checkout-files@v2
|
|
with:
|
|
files: CONTRIBUTORS.md bin/scripts/update-all-contributors-website.py
|
|
branch: master
|
|
- name: Fetch from gh-pages
|
|
uses: Bhacaz/checkout-files@v2
|
|
with:
|
|
files: _posts/2017-01-05-all-contributors.md
|
|
branch: gh-pages
|
|
- name: Update the page
|
|
run: |
|
|
cd bin/scripts
|
|
chmod u+x *
|
|
./update-all-contributors-website.py
|
|
- name: Deploy page to gh-pages
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
with:
|
|
folder: _posts
|
|
target-folder: _posts
|
|
commit-message: "[ci] Regenerate contributors"
|
|
git-config-name: GitHub Actions
|
|
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
|
|
clean: false
|