Skip to content

Update schema.graphql #1

Update schema.graphql

Update schema.graphql #1

name: Publish updated catalog info for schema
on:
push:
branches:
- main
- backstage-catalog-info
paths:
- 'subgraphs/playback/schema.graphql'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
publish_playback_schema:
name: Update Catalog Info
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
check-latest: true
- run: npm install
- run: npm run catalog:playback
- name: Commit files
id: commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "github-actions"
git add --all
git commit -m "Update catalog-info.yaml" -a
git push -u origin $GITHUB_REF
SHA=$(git rev-parse HEAD)
echo "::set-output name=commitid::$SHA"