Skip to content

Commit

Permalink
ci: add prod deployment action (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjdominguez authored Nov 13, 2023
1 parent b8bf8ff commit 9c08093
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/merge-staging-to-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Merge Release Stage to Release Prod

on:
workflow_dispatch:

jobs:
update-staging:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Merge Release Stage to Release Prod
run: |
git config user.name "hasura-bot"
git config user.email "[email protected]"
# we'll pull the latest changes from main
git pull origin release-stage
# then, we'll merge main into release-prod
git merge release-stage -m "Merge release-stage into release-prod"
# and push the changes
git push origin release-prod
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9c08093

Please sign in to comment.