From b604a76b1827999cbd0272c6b0378ae026581bf9 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 12 Jul 2023 21:25:58 -0400 Subject: [PATCH] let's support both newer 'main' and older 'master' repositories --- .github/workflows/create-board.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-board.yaml b/.github/workflows/create-board.yaml index ab55d1e..a4d2d18 100644 --- a/.github/workflows/create-board.yaml +++ b/.github/workflows/create-board.yaml @@ -44,7 +44,8 @@ jobs: bash hellen-one/bin/gha-commit.sh - name: Push board files - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && env.NOCOMMIT != 'true'}} +# let's support both newer 'main' and older 'master' repositories + if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && env.NOCOMMIT != 'true'}} uses: ad-m/github-push-action@master with: github_token: ${{ github.token }}