Skip to content

Commit

Permalink
chore(ci): fix changelog workflow extern contribs (#19524)
Browse files Browse the repository at this point in the history
* chore(ci): fix changelog workflow extern contribs

* use fork check
  • Loading branch information
neuronull authored Jan 5, 2024
1 parent 3525d06 commit 81d22b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ jobs:
- uses: actions/checkout@v3

- name: Generate authentication token
# don't run this step if the PR is from a fork since the secrets won't exist
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
id: generate_token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{ secrets.GH_APP_DATADOG_VECTOR_CI_APP_ID }}
private_key: ${{ secrets.GH_APP_DATADOG_VECTOR_CI_APP_PRIVATE_KEY }}

- name: Get PR comment author
# don't run this step if the PR is from a fork since the secrets won't exist
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
id: author
uses: tspascoal/get-user-teams-membership@v3
with:
Expand All @@ -36,6 +40,7 @@ jobs:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

- env:
# if the prior step did not run, this var will be ''
AUTHOR_IS_TEAM_MEMBER: ${{ steps.author.outputs.isTeamMember }}
run: |
if [[ $PR_HAS_LABEL == 'true' ]] ; then
Expand Down

0 comments on commit 81d22b3

Please sign in to comment.