Merge pull request #1376 from mathbunnyru/asalikhov/main_branch

Make github actions work for main branch
This commit is contained in:
Ayaz Salikhov
2021-06-20 20:56:00 +03:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -56,18 +56,18 @@ jobs:
- name: Run Post-Build Hooks
run: make -C main hook-all
- name: Push Wiki to GitHub
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
# Pass GITHUB_REPOSITORY directly to avoid conflict with GitHub Actions built-in env var
run: make -C main git-commit GITHUB_REPOSITORY='${{github.repository}}.wiki'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
LOCAL_PATH: ../wiki
- name: Login to Docker Hub
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
uses: docker/login-action@v1
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}
- name: Push Images to DockerHub
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
run: make -C main push-all

View File

@@ -35,13 +35,13 @@ jobs:
- name: Build Documentation
run: make docs
- name: Extract Source Strings
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
working-directory: docs
run: |
make gettext
sphinx-intl update -p _build/gettext -l en
- name: Push Strings to Master
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
run: make git-commit
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}