Merge pull request #10 from MiSArch/fixed-healthcheck #10
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
name: Update GraphQL schema | |
on: | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
schema: | |
name: Update GraphQL schema | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install latest stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- uses: actions/checkout@v4 | |
with: | |
repository: "misarch/schemas" | |
path: "schemas" | |
- name: Save graphql schemas | |
run: | | |
sudo apt install -y protobuf-compiler | |
cargo run -- --generate-schema | |
- uses: misarch/graphql-schema-transform@v1 | |
with: | |
schema: schemas/review.graphql | |
target: schemas/review.graphql | |
- uses: peter-evans/create-pull-request@v5 | |
with: | |
path: ./schemas | |
commit-message: Update review schema | |
branch: update/review | |
token: ${{ secrets.SCHEMAS_PUSH_SECRET }} |