Skip to content

Commit b4636aa

Browse files
deployment: add graphite ci-optimizations
1 parent e373d36 commit b4636aa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/hybrid_system_test.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,22 @@ concurrency:
3737
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
3838

3939
jobs:
40+
# https://graphite.com/docs/stacking-and-ci
41+
optimize_ci:
42+
runs-on: namespace-profile-small-ubuntu-24-04-amd64
43+
outputs:
44+
skip: ${{ steps.check_skip.outputs.skip }}
45+
steps:
46+
- name: Optimize CI
47+
id: check_skip
48+
uses: withgraphite/graphite-ci-action@main
49+
with:
50+
graphite_token: ${{ secrets.GRAPHITE_CI_OPTIMIZER_TOKEN }}
51+
4052
check-system-test-trigger:
4153
runs-on: namespace-profile-small-ubuntu-24-04-amd64
54+
needs: optimize_ci
55+
if: needs.optimize_ci.outputs.skip == 'false'
4256
outputs:
4357
should_run: ${{ github.event_name == 'workflow_dispatch' && 'true' || steps.system_check.outputs.should_run }}
4458
steps:

0 commit comments

Comments
 (0)