Skip to content

Commit

Permalink
BWS-PKG - Set default branch using GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemhall committed Oct 4, 2023
1 parent f2a5c8e commit 1dcef5b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/github_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1dcef5b

Please sign in to comment.