ci: Author Information and Upstream Branch

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-11-30 11:58:27 +01:00
parent 9857194794
commit e38f117abe
1 changed files with 15 additions and 3 deletions

View File

@ -1,4 +1,4 @@
name: Refresh name: Authors
on: on:
schedule: schedule:
- cron: '0 0 * * 0' - cron: '0 0 * * 0'
@ -13,6 +13,18 @@ jobs:
steps: steps:
- name: "Checkout" - name: "Checkout"
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: "Configure"
shell: bash
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email 'xaymar@users.noreply.github.com'
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: "Dependecies" - name: "Dependecies"
shell: bash shell: bash
run: | run: |
@ -31,5 +43,5 @@ jobs:
node ./generate-contributors.js "${{ github.workspace }}/AUTHORS.md" "${{ github.workspace }}/data/thanks.json" node ./generate-contributors.js "${{ github.workspace }}/AUTHORS.md" "${{ github.workspace }}/data/thanks.json"
popd > /dev/null popd > /dev/null
git add . git add .
git commit -a -m="project: Generate contributor attribution files" git commit -a -m "project: Update Contributors and Supporters"
git push -f git push -f --set-upstream origin authors