Update schema.graphql #1
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: 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" |