-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use graph-federation workflows for graph composition and update
- Loading branch information
Showing
2 changed files
with
9 additions
and
61 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|