-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update lint scripts and CI configs.
- Loading branch information
Showing
6 changed files
with
96 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,6 @@ | |
|
||
set -e | ||
|
||
.github/assert-contributors.sh | ||
.github/generate-authors.sh | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: generate-authors | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
generate-authors: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
fetch-depth: 0 | ||
token: ${{ secrets.PIONBOT_PRIVATE_KEY }} | ||
|
||
- name: Generate the authors file | ||
run: .github/generate-authors.sh | ||
|
||
- name: Add the authors file to git | ||
run: git add AUTHORS.txt | ||
|
||
- name: Get last commit message | ||
id: last-commit-message | ||
run: | | ||
COMMIT_MSG=$(git log -1 --pretty=%B) | ||
COMMIT_MSG="${COMMIT_MSG//'%'/'%25'}" | ||
COMMIT_MSG="${COMMIT_MSG//$'\n'/'%0A'}" | ||
COMMIT_MSG="${COMMIT_MSG//$'\r'/'%0D'}" | ||
echo "::set-output name=msg::$COMMIT_MSG" | ||
- name: Get last commit author | ||
id: last-commit-author | ||
run: | | ||
echo "::set-output name=msg::$(git log -1 --pretty='%aN <%ae>')" | ||
- name: Check if AUTHORS.txt file has changed | ||
id: git-status-output | ||
run: | | ||
echo "::set-output name=msg::$(git status -s | wc -l)" | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
if: ${{ steps.git-status-output.outputs.msg != '0' }} | ||
with: | ||
commit_message: ${{ steps.last-commit-message.outputs.msg }} | ||
commit_author: ${{ steps.last-commit-author.outputs.msg }} | ||
commit_options: '--amend --no-edit' | ||
push_options: '--force' | ||
skip_fetch: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Thank you to everyone that made Pion possible. If you are interested in contributing | ||
# we would love to have you https://github.com/pion/webrtc/wiki/Contributing | ||
# | ||
# This file is auto generated, using git to list all individuals contributors. | ||
# see `.github/generate-authors.sh` for the scripting | ||
adwpc <[email protected]> | ||
aler9 <[email protected]> | ||
Antoine Baché <[email protected]> | ||
Atsushi Watanabe <[email protected]> | ||
Bao Nguyen <[email protected]> | ||
debiandebiandebian <[email protected]> | ||
ffmiyo <[email protected]> | ||
Guilherme <[email protected]> | ||
Haiyang Wang <[email protected]> | ||
Hugo Arregui <[email protected]> | ||
John Bradley <[email protected]> | ||
Juliusz Chroboczek <[email protected]> | ||
Kazuyuki Honda <[email protected]> | ||
Luke Curley <[email protected]> | ||
lxb <[email protected]> | ||
Michael MacDonald <[email protected]> | ||
Michael MacDonald <[email protected]> | ||
Raphael Derosso Pereira <[email protected]> | ||
Rob Lofthouse <[email protected]> | ||
Robin Raymond <[email protected]> | ||
Sean DuBois <[email protected]> | ||
Sean DuBois <[email protected]> | ||
Simone Gotti <[email protected]> | ||
Tarrence van As <[email protected]> | ||
Woodrow Douglass <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters