Skip to content

Commit

Permalink
feedback js
Browse files Browse the repository at this point in the history
  • Loading branch information
neuronull committed Jul 10, 2023
1 parent dfa93ca commit 0d23f52
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,14 @@ jobs:
- run: docker image prune -af ; docker container prune -f

- name: Determine if secrets are defined (PR author is team member).
if: github.event_name == 'pull_request'
env:
GH_PAT_ORG: ${{ secrets.GH_PAT_ORG }}
run: |
if [[ "$GH_PAT_ORG" != "" ]] ; then
echo "PR_AUTHOR_IS_TEAM_MEMBER=true" >> "$GITHUB_ENV"
echo "PR_HAS_ACCESS_TO_SECRETS=true" >> "$GITHUB_ENV"
else
echo "PR_AUTHOR_IS_TEAM_MEMBER=false" >> "$GITHUB_ENV"
echo "PR_HAS_ACCESS_TO_SECRETS=false" >> "$GITHUB_ENV"
fi
- if: ${{ github.event_name == 'merge_group' || needs.changes.outputs.all-int == 'true' || needs.changes.outputs.amqp == 'true' }}
Expand All @@ -114,7 +115,7 @@ jobs:
command: bash scripts/ci-integration-test.sh amqp

- if: (github.event_name == 'merge_group' || needs.changes.outputs.all-int == 'true' || needs.changes.outputs.appsignal == 'true') &&
(github.event_name != 'pull_request' || env.PR_AUTHOR_IS_TEAM_MEMBER == 'true')
(github.event_name != 'pull_request' || env.PR_HAS_ACCESS_TO_SECRETS == 'true')
name: appsignal
uses: nick-fields/retry@v2
with:
Expand All @@ -131,7 +132,7 @@ jobs:
command: bash scripts/ci-integration-test.sh aws

- if: (github.event_name == 'merge_group' || needs.changes.outputs.all-int == 'true' || needs.changes.outputs.axiom == 'true') &&
(github.event_name != 'pull_request' || env.PR_AUTHOR_IS_TEAM_MEMBER == 'true')
(github.event_name != 'pull_request' || env.PR_HAS_ACCESS_TO_SECRETS == 'true')
name: axiom
uses: nick-fields/retry@v2
with:
Expand All @@ -156,7 +157,7 @@ jobs:
command: bash scripts/ci-integration-test.sh clickhouse

- if: (github.event_name == 'merge_group' || needs.changes.outputs.all-int == 'true' || needs.changes.outputs.databend == 'true') &&
(github.event_name != 'pull_request' || env.PR_AUTHOR_IS_TEAM_MEMBER == 'true')
(github.event_name != 'pull_request' || env.PR_HAS_ACCESS_TO_SECRETS == 'true')
name: databend
uses: nick-fields/retry@v2
with:
Expand All @@ -165,7 +166,7 @@ jobs:
command: bash scripts/ci-integration-test.sh databend

- if: (github.event_name == 'merge_group' || needs.changes.outputs.all-int == 'true' || needs.changes.outputs.datadog == 'true') &&
(github.event_name != 'pull_request' || env.PR_AUTHOR_IS_TEAM_MEMBER == 'true')
(github.event_name != 'pull_request' || env.PR_HAS_ACCESS_TO_SECRETS == 'true')
name: datadog-agent
uses: nick-fields/retry@v2
with:
Expand All @@ -174,7 +175,7 @@ jobs:
command: bash scripts/ci-integration-test.sh datadog-agent

- if: (github.event_name == 'merge_group' || needs.changes.outputs.all-int == 'true' || needs.changes.outputs.datadog == 'true') &&
(github.event_name != 'pull_request' || env.PR_AUTHOR_IS_TEAM_MEMBER == 'true')
(github.event_name != 'pull_request' || env.PR_HAS_ACCESS_TO_SECRETS == 'true')
name: datadog-logs
uses: nick-fields/retry@v2
with:
Expand All @@ -183,7 +184,7 @@ jobs:
command: bash scripts/ci-integration-test.sh datadog-logs

- if: (github.event_name == 'merge_group' || needs.changes.outputs.all-int == 'true' || needs.changes.outputs.datadog == 'true') &&
(github.event_name != 'pull_request' || env.PR_AUTHOR_IS_TEAM_MEMBER == 'true')
(github.event_name != 'pull_request' || env.PR_HAS_ACCESS_TO_SECRETS == 'true')
name: datadog-metrics
uses: nick-fields/retry@v2
with:
Expand All @@ -192,7 +193,7 @@ jobs:
command: bash scripts/ci-integration-test.sh datadog-metrics

- if: (github.event_name == 'merge_group' || needs.changes.outputs.all-int == 'true' || needs.changes.outputs.datadog == 'true') &&
(github.event_name != 'pull_request' || env.PR_AUTHOR_IS_TEAM_MEMBER == 'true')
(github.event_name != 'pull_request' || env.PR_HAS_ACCESS_TO_SECRETS == 'true')
name: datadog-traces
uses: nick-fields/retry@v2
with:
Expand Down

0 comments on commit 0d23f52

Please sign in to comment.