Use a release branch for the github action

This commit is contained in:
Marc Di Luzio 2024-08-10 22:24:35 +01:00
parent b6b26b43a4
commit b9e5a2cdfe
2 changed files with 8 additions and 2 deletions

View file

@ -24,3 +24,10 @@ jobs:
- name: Run tests with pytest - name: Run tests with pytest
run: | run: |
pytest 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
View file

@ -4,6 +4,5 @@ set -e
while python matchy.py while python matchy.py
do do
git fetch git pull
git checkout validated
done done