Skip to content

Commit

Permalink
Use graph-federation workflows for graph composition and update
Browse files Browse the repository at this point in the history
  • Loading branch information
garryod committed Oct 31, 2024
1 parent 0c65f10 commit 4ea471d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 61 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/_supergraph_composition.yaml

This file was deleted.

19 changes: 9 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,18 @@ jobs:
contents: read
packages: write

supergraph_composition:
supergraph:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
needs: graph_proxy_schema
uses: ./.github/workflows/_supergraph_composition.yaml

supergraph_update:
# Only update the supergraph on releases (tagged pushes to main)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: supergraph_composition
uses: ./.github/workflows/_supergraph_update.yaml
secrets:
GRAPH_FEDERATOR: ${{ secrets.GRAPH_FEDERATOR }}
uses: diamondlightsource/graph-federation/workflows/[email protected]
with:
name: workflows
routing-url: https://workflows.diamond.ac.uk/graphql
subgraph-schema-artifact: graph-proxy
subgraph-schema-filename: workflows.graphql
github-app-id: 1010045
github-app-private-key: ${{ secrets.GRAPH_FEDERATOR }}

frontend_code:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
Expand Down

0 comments on commit 4ea471d

Please sign in to comment.