-
Notifications
You must be signed in to change notification settings - Fork 142
42 lines (35 loc) · 1.08 KB
/
deploy-schema.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Apollo Studio Schema Changes
on:
workflow_run:
workflows: ["Kitsu Test Suite"]
types:
- completed
env:
BUNDLE_GITHUB__HTTPS: true
LOG_LEVEL: warn
jobs:
apollo-studio:
runs-on: ubuntu-latest
if: >
${{ github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Rover
run: |
curl -sSL https://rover.apollo.dev/nix/v0.14.0 | sh
echo "$HOME/.rover/bin" >> $GITHUB_PATH
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: "Kitsu Test Suite"
workflow_conclusion: success
run_id: ${{github.event.workflow_run.id}}
name: graphql-schema-ruby-3.1
- name: Display structure of downloaded files
run: ls -R
- name: Upload GraphQL Schema
env:
APOLLO_KEY: ${{ secrets.APOLLO_KEY }}
run: rover graph publish kitsu@current --schema ./schema.graphql