Use a release branch for the github action
This commit is contained in:
parent
b6b26b43a4
commit
b9e5a2cdfe
2 changed files with 8 additions and 2 deletions
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
|
@ -24,3 +24,10 @@ jobs:
|
|||
- name: Run tests with pytest
|
||||
run: |
|
||||
pytest
|
||||
- name: Update release branch
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
git fetch origin
|
||||
git checkout -b release
|
||||
git merge --no-ff origin/${{ github.head_commit.id }}
|
||||
git push origin release
|
3
run.sh
3
run.sh
|
@ -4,6 +4,5 @@ set -e
|
|||
|
||||
while python matchy.py
|
||||
do
|
||||
git fetch
|
||||
git checkout validated
|
||||
git pull
|
||||
done
|
||||
|
|
Loading…
Add table
Reference in a new issue