Set Repository to connectors default starting config #4
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: Set Repository to connectors default starting config | |
on: | |
workflow_dispatch: | |
env: | |
GEN: ${{ secrets.GEN || 'ws1' }} | |
APOLLO_KEY: ${{ vars.TOKEN }} | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Create report file | |
run: | | |
cp -f $GITHUB_WORKSPACE/connector-default/orders-schema.graphql $GITHUB_WORKSPACE/orders-schema.graphql | |
cp -f $GITHUB_WORKSPACE/connector-default/customers-schema.graphql $GITHUB_WORKSPACE/customers-schema.graphql | |
cp -f $GITHUB_WORKSPACE/connector-default/products-schema.graphql $GITHUB_WORKSPACE/products-schema.graphql | |
cp -f $GITHUB_WORKSPACE/connector-default/router.yaml $GITHUB_WORKSPACE/router/router.yaml | |
- name: Commit report | |
run: | | |
git config --global user.name 'Automated Process' | |
git config --global user.email '[email protected]' | |
git commit -am "Prep env for connectors lab" | |
git push | |