Skip to content

Commit

Permalink
ci: Github cleanups (#36333)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax authored Sep 25, 2024
1 parent c9a80f6 commit bb3aea8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/envoy-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
contents: read
packages: read
pull-requests: read
if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: >-
${{ github.event.workflow_run.conclusion == 'success'
&& (github.repository == 'envoyproxy/envoy' || vars.ENVOY_CI) }}
uses: ./.github/workflows/_load.yml
with:
check-name: checks
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/envoy-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ on:
- completed

concurrency:
group: >-
${{ github.actor != 'trigger-release-envoy[bot]'
&& github.event.inputs.head_ref
|| github.run_id
}}-${{ github.event.workflow.id }}
group: ${{ github.head_ref || github.run_id }}-${{ github.workflow }}
cancel-in-progress: true

env:
CI_DEBUG: ${{ vars.CI_DEBUG }}


jobs:
load:
Expand All @@ -35,12 +34,8 @@ jobs:
packages: read
pull-requests: read
if: >-
${{ (github.repository == 'envoyproxy/envoy'
|| vars.ENVOY_CI)
&& (!contains(github.actor, '[bot]')
|| github.actor == 'trigger-workflow-envoy[bot]'
|| github.actor == 'trigger-release-envoy[bot]')
}}
${{ github.event.workflow_run.conclusion == 'success'
&& (github.repository == 'envoyproxy/envoy' || vars.ENVOY_CI) }}
uses: ./.github/workflows/_load.yml
with:
check-name: publish
Expand Down

0 comments on commit bb3aea8

Please sign in to comment.