forked from Vhonowslend/StreamFX-Public
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.47 KB
/
authors.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# AUTOGENERATED COPYRIGHT HEADER START
# Copyright (C) 2021-2023 Michael Fabian 'Xaymar' Dirks <[email protected]>
# AUTOGENERATED COPYRIGHT HEADER END
name: Authors
on: workflow_dispatch
jobs:
update-authors:
runs-on: ubuntu-20.04
name: "Update Authors"
steps:
- name: "Checkout"
uses: actions/checkout@v3
- name: "Configure"
shell: bash
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git config pull.ff only
git config pull.rebase true
- name: "Remotes"
shell: bash
run: |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git fetch --all
- name: "Dependencies"
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: Update Contributors and Supporters"
git push -f --set-upstream origin authors