Created
August 8, 2021 14:42
-
-
Save pantos27/f4fcbcc4eaf5adc0ae7a3c2786798565 to your computer and use it in GitHub Desktop.
Github action to auto deploy to branch QA once a new version tag is created
This file contains hidden or 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: deploy-to-qa | |
on: | |
workflow_dispatch: | |
push: | |
tags: [ 'v*' ] | |
jobs: | |
update_qa: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
ref: 'qa' | |
- name: 'push to qa' | |
run: | | |
git pull --all | |
git merge origin/dev --ff-only | |
git push | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment