Skip to content

Bump dockerfile

Bump dockerfile #35

Workflow file for this run

name: Hive Check
on:
pull_request:
branches:
- 'master'
- '[0-9]+.X-stable'
tags:
- 'v*'
- 'v[0-9]+.[0-9]+.[0-9]-stable'
jobs:
hive-check:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: checkout
uses: actions/checkout@v3
- name: Stable token
if: github.ref_type == 'branch' && endsWith(github.base_ref, '-stable')
run: |
echo "HIVE_TOKEN=${{ secrets.HIVE_STABLE_LATEST_TOKEN }}" >> "$GITHUB_ENV"
- name: Master token
if: github.ref_type == 'branch' && github.base_ref == 'master'
run: |
echo "HIVE_TOKEN=${{ secrets.HIVE_MASTER_LATEST_TOKEN }}" >> "$GITHUB_ENV"
- name: Stable release token
if: github.ref_type == 'tag' && endsWith(github.ref, '-stable')
run: |
echo "HIVE_TOKEN=${{ secrets.HIVE_STABLE_RELEASE_TOKEN }}" >> "$GITHUB_ENV"
- name: Master release token
if: ${{ github.ref_type == 'tag' && !endsWith(github.ref, '-stable') }}
run: |
echo "HIVE_TOKEN=${ secrets.HIVE_MASTER_RELEASE_TOKEN }" >> "$GITHUB_ENV"
- name: Schema check
env:
SCHEMA_PATH: "graph/graphql/schema/schema.graphql"
run: |
curl -sSL https://graphql-hive.com/install.sh | sh
hive schema:check ${{ env.SCHEMA_PATH }} \
--registry.accessToken ${HIVE_TOKEN} \
--github