Skip to content

Commit

Permalink
chore(ci): don't run update contributors on forked PRs (#4323)
Browse files Browse the repository at this point in the history
* chore(ci): don't run update contributors on forked PRs

* chore: update contributors field

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
erezrokah and kodiakhq[bot] authored Feb 17, 2022
1 parent c7b28c5 commit 06033af
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,21 @@ on:
jobs:
update-contributors:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false }}
steps:
- uses: navikt/github-app-token-generator@2d70c12368d1958155af4d283f9f21c9a2a8cb98
id: get-token
with:
private-key: ${{ secrets.TOKENS_PRIVATE_KEY }}
app-id: ${{ secrets.TOKENS_APP_ID }}
- name: Git checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: netlify/update-contributors-action@main
token: ${{ steps.get-token.outputs.token }}
- uses: netlify/update-contributors-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ steps.get-token.outputs.token }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'chore: update contributors field'
Expand Down

1 comment on commit 06033af

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

Package size: 442 MB

Please sign in to comment.