Skip to content

Commit

Permalink
Merge pull request #45 from yumemi-inc/feature/#8-9
Browse files Browse the repository at this point in the history
Add a add-contributors workflow for updating contributors
  • Loading branch information
blendthink authored Nov 1, 2023
2 parents ff801b4 + d52c8d4 commit 7e3a9f0
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/update-contributors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update Contributors
on:
workflow_dispatch:
push:
branches:
- 'main'

env:
UPDATE_CONTRIBUTORS_BRANCH: update-contributors

jobs:
add-contributors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Delete old branch (If it exists)
run: git push origin --delete ${{ env.UPDATE_CONTRIBUTORS_BRANCH }}
continue-on-error: true
- name: Create and push new branch
run: |
git branch ${{ env.UPDATE_CONTRIBUTORS_BRANCH }}
git push origin ${{ env.UPDATE_CONTRIBUTORS_BRANCH }}
# https://github.com/BobAnkh/add-contributors
- uses: BobAnkh/[email protected]
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: ${{ env.UPDATE_CONTRIBUTORS_BRANCH }}
PULL_REQUEST: 'main'
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,13 @@ linter:
```

In the above example, we have customized various lint rules by adjusting their settings in the `analysis_options.yaml` file. You can modify these settings according to your project's specific needs and coding style preferences.

## How to contribute

See [Contributor Guide] for contributing conventions.

### Contributors

<!-- Links -->

[Contributor Guide]: docs/contributing/CONTRIBUTING.md

0 comments on commit 7e3a9f0

Please sign in to comment.