obs-StreamFX/.github/workflows/authors.yml

36 lines
936 B
YAML
Raw Normal View History

name: Refresh
on:
schedule:
- cron: '0 0 * * 0'
push:
branches:
- 'master'
jobs:
update-authors:
2021-11-30 10:32:23 +00:00
runs-on: ubuntu-20.04
name: "Update Authors"
steps:
- name: "Checkout"
uses: actions/checkout@v2
2021-11-30 10:32:23 +00:00
- name: "Dependecies"
shell: bash
run: |
sudo apt-get -qq update
sudo apt-get install nodejs npm
- name: "Generate Authors file"
shell: bash
env:
CROWDIN_PROJECTID: "343435"
CROWDIN_TOKEN: ${{ secrets.AUTH_TOKEN_CROWDIN }}
GITHUB_TOKEN: ${{ secrets.AUTH_TOKEN_GITHUB }}
run: |
git checkout -b authors
pushd ./tools > /dev/null
npm install
node ./generate-contributors.js "${{ github.workspace }}/AUTHORS.md" "${{ github.workspace }}/data/thanks.json"
2021-11-30 10:32:23 +00:00
popd > /dev/null
git add .
git commit -a -m="project: Generate contributor attribution files"
git push -f