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

Use graph-federation workflows for graph composition and update #245

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
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