-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add prod deployment action (#205)
- Loading branch information
1 parent
b8bf8ff
commit 9c08093
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |