Skip to content

Commit

Permalink
Add collaborator action
Browse files Browse the repository at this point in the history
  • Loading branch information
helloRupa authored Oct 6, 2020
1 parent 8ef0ed1 commit 06835b6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/add_collaborators.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Add Collaborators
on:
watch:
types: [started]

jobs:
add_collaborator:
runs-on: ubuntu-latest
steps:
- uses: octokit/[email protected]
id: add_collaborator
with:
route: PUT /repos/{repo-owner}/{repo-name}/collaborators/{username}
repo-owner: ${{ github.repository_owner }}
repo-name: ${{ github.event.repository.name }}
username: ${{ github.actor }}
env:
GITHUB_TOKEN: ${{ secrets.ADD_COLLABORATOR }}

0 comments on commit 06835b6

Please sign in to comment.