Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): fix changelog workflow extern contribs #19524

Merged
merged 2 commits into from
Jan 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading