-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
190 changed files
with
6,196 additions
and
2,503 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
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,73 @@ | ||
# | ||
# DO NOT EDIT THIS FILE | ||
# | ||
# It is automatically copied from https://github.com/pion/.goassets repository. | ||
# If this repository should have package specific CI config, | ||
# remove the repository name from .goassets/.github/workflows/assets-sync.yml. | ||
# | ||
# If you want to update the shared CI config, send a PR to | ||
# https://github.com/pion/.goassets instead of this repository. | ||
# | ||
|
||
name: generate-authors | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
checksecret: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
is_PIONBOT_PRIVATE_KEY_set: ${{ steps.checksecret_job.outputs.is_PIONBOT_PRIVATE_KEY_set }} | ||
steps: | ||
- id: checksecret_job | ||
env: | ||
PIONBOT_PRIVATE_KEY: ${{ secrets.PIONBOT_PRIVATE_KEY }} | ||
run: | | ||
echo "is_PIONBOT_PRIVATE_KEY_set: ${{ env.PIONBOT_PRIVATE_KEY != '' }}" | ||
echo "::set-output name=is_PIONBOT_PRIVATE_KEY_set::${{ env.PIONBOT_PRIVATE_KEY != '' }}" | ||
generate-authors: | ||
needs: [checksecret] | ||
if: needs.checksecret.outputs.is_PIONBOT_PRIVATE_KEY_set == 'true' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
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)" | ||
- name: Commit and push | ||
if: ${{ steps.git-status-output.outputs.msg != '0' }} | ||
run: | | ||
git config user.email $(echo "${{ steps.last-commit-author.outputs.msg }}" | sed 's/\(.\+\) <\(\S\+\)>/\2/') | ||
git config user.name $(echo "${{ steps.last-commit-author.outputs.msg }}" | sed 's/\(.\+\) <\(\S\+\)>/\1/') | ||
git add AUTHORS.txt | ||
git commit --amend --no-edit | ||
git push --force https://github.com/${GITHUB_REPOSITORY} $(git symbolic-ref -q --short HEAD) |
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
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,17 @@ | ||
name: StandardJS | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
jobs: | ||
StandardJS: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 12.x | ||
- run: npm install standard | ||
- run: npx standard |
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
Oops, something went wrong.