From 1dcef5b639dbcadcb9a307a0b58c46e4b2250528 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 4 Oct 2023 13:42:03 -0400 Subject: [PATCH] BWS-PKG - Set default branch using GitHub Actions --- .github/workflows/github_actions.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/github_actions.yml b/.github/workflows/github_actions.yml index aa398204c0..8cf71a5f1a 100644 --- a/.github/workflows/github_actions.yml +++ b/.github/workflows/github_actions.yml @@ -390,14 +390,14 @@ jobs: run: docker push quay.io/bywatersolutions/koha:${{ steps.extracted_variables.outputs.SHORTNAME }}-${{ steps.extracted_variables.outputs.KOHA_MAJOR_MINOR }}-latest set-default-branch: - if: github.repository == 'bywatersolutions/bywater-koha' - name: Change the default branch in GitHub - needs: [build-debs] - runs-on: ubuntu-latest - steps: - - run: gh api repos/bywatersolutions/bywater-koha --method PATCH --field 'default_branch=${{ github.ref_name }}' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + if: startsWith( github.ref, 'refs/heads/bywater-v' ) && github.repository == 'bywatersolutions/bywater-koha' + needs: [unit-test, is-a-mark] + runs-on: ubuntu-latest + steps: + - run: gh repo edit {bywatersolutions/bywater-koha --default-branch $BRANCH + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: ${GITHUB_REF##*/} zap-scan-baseline-opac: name: ZAP Scan - Baseline - OPAC