Skip to content

Instantly share code, notes, and snippets.

@pantos27
Created August 8, 2021 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pantos27/f4fcbcc4eaf5adc0ae7a3c2786798565 to your computer and use it in GitHub Desktop.
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
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