chore: make contributors workflow only run on main repo #15
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
on: | |
push: | |
branches: | |
- main | |
jobs: | |
contrib-readme-job: | |
# only run on main repo, not on forks to avoid merging conflicts | |
if: github.repository_owner == 'marcoaaguiar' | |
runs-on: ubuntu-latest | |
name: A job to automate contrib in readme | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Contribute List | |
uses: akhilmhdh/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |