From 4e92f0b8cdfe8bfa78130766ec1ea0024953e117 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 14 Dec 2021 14:09:58 +0200 Subject: [PATCH] .github/workflows/pages.yml: adjust branches Run Python job steps on all branches, but only push to GitHub pages from main. See: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions See: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context --- .github/workflows/pages.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index b28b206c..d60502f1 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -2,8 +2,6 @@ name: Pages on: push: - branches: - - main jobs: parse: @@ -22,6 +20,7 @@ jobs: run: poetry --version pages: runs-on: ubuntu-latest + if: ${{ github.ref_name == 'main' }} steps: - uses: actions/checkout@v2 - name: Deploy