Skip to content

Commit

Permalink
feat: push changes to specific branch on lambda-pedido-acolhimento
Browse files Browse the repository at this point in the history
  • Loading branch information
vivianedias committed Feb 26, 2024
1 parent 88d465a commit e5864dc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/update-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
- 'schema.prisma'

jobs:
pull-file:
update-schema:
runs-on: ubuntu-latest
steps:
- name: Checkout current repository
Expand All @@ -45,7 +45,6 @@ jobs:
- name: Check for changes
working-directory: lambda-pedido-acolhimento
run: |
git status
if git diff --quiet; then
echo "No changes detected. Exiting."
echo "exiting=true" >> $GITHUB_ENV
Expand All @@ -57,10 +56,13 @@ jobs:
run: |
git config user.name "$USERNAME"
git config user.email "$USERNAME@$ADDRESS_SUFFIX"
git checkout feat/use-remote-prisma-ref
git add prisma/schema.prisma
git commit -m "feat: updated schema.prisma file from $THE_SERVER/mapadoacolhimento/mapa-migrations."
# - name: Push
# if: env.exiting != 'true'
# working-directory: lambda-pedido-acolhimento
# run: git push origin main
- name: Push
if: env.exiting != 'true'
working-directory: lambda-pedido-acolhimento
run: |
git checkout feat/use-remote-prisma-ref
git push -u origin feat/use-remote-prisma-ref

0 comments on commit e5864dc

Please sign in to comment.