Add automatic dev update (#229)

This commit is contained in:
Adam Sunderland
2023-08-04 09:42:57 -04:00
committed by GitHub
parent 8c5d7bf648
commit 4c5178ea5c

29
.github/workflows/update-dev-branch.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: update-dev-branch
on:
push:
branches:
- main
pull_request:
paths:
- .github/workflows/update-dev-branch.yml
permissions:
contents: write
jobs:
update-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.0
- shell: bash
run: |
# checkout our branch
git checkout dev || git checkout -b dev
# fetch origin
git fetch origin
# reset to main
git reset --hard origin/main
# force push it
git push -f origin dev