push QCH file only if MR is accepted

fix errors due to github conflict editor being crappy
This commit is contained in:
Int-Circuit
2025-08-04 16:06:40 +02:00
parent 73e673ef8a
commit 94269afc76

View File

@@ -16,6 +16,7 @@ jobs:
permissions: permissions:
contents: write contents: write
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
if: github.ref == 'refs/heads/master'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@@ -35,8 +36,6 @@ jobs:
git add .gitattributes ${{ github.workspace }}/doc/QElectroTech.qch -f git add .gitattributes ${{ github.workspace }}/doc/QElectroTech.qch -f
git commit -m "Push updated QCH file" git commit -m "Push updated QCH file"
git push git push
- name: Run doxygen
run: doxygen Doxyfile
- uses: actions/upload-pages-artifact@v3 - uses: actions/upload-pages-artifact@v3
with: with:
path: ${{ github.workspace }}/doc/html/ path: ${{ github.workspace }}/doc/html/