Skip to content

Instantly share code, notes, and snippets.

@pantos27
Created Aug 8, 2021
Embed
What would you like to do?
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