mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-10-24 05:42:39 +00:00
35 lines
936 B
YAML
35 lines
936 B
YAML
name: Refresh
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * 0'
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
|
|
jobs:
|
|
update-authors:
|
|
runs-on: ubuntu-20.04
|
|
name: "Update Authors"
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: actions/checkout@v2
|
|
- 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"
|
|
popd > /dev/null
|
|
git add .
|
|
git commit -a -m="project: Generate contributor attribution files"
|
|
git push -f
|