diff --git a/.github/workflows/backend.yaml b/.github/workflows/backend.yaml index 7c528c27..fc74fed5 100644 --- a/.github/workflows/backend.yaml +++ b/.github/workflows/backend.yaml @@ -45,8 +45,8 @@ jobs: # - a change is made to the default branch. if: | github.repository_owner_id == 2088731 && - github.repository_id != 610204172 - # github.ref_name == github.event.repository.default_branch + github.repository_id != 610204172 && + github.ref_name == github.event.repository.default_branch steps: - name: 🐍 Set up Python ${{ inputs.python-version }} Environment uses: ocadotechnology/codeforlife-workspace/.github/actions/python/setup-environment@main @@ -69,5 +69,5 @@ jobs: release: needs: [build] - uses: ocadotechnology/codeforlife-workspace/.github/workflows/release.yaml@contributor-backend-31 # TODO: set to @main + uses: ocadotechnology/codeforlife-workspace/.github/workflows/release.yaml@main secrets: inherit diff --git a/.github/workflows/frontend.yaml b/.github/workflows/frontend.yaml index 9fc429e9..62215230 100644 --- a/.github/workflows/frontend.yaml +++ b/.github/workflows/frontend.yaml @@ -56,5 +56,5 @@ jobs: release: needs: [build] - uses: ocadotechnology/codeforlife-workspace/.github/workflows/release.yaml@contributor-backend-31 # TODO: set to @main + uses: ocadotechnology/codeforlife-workspace/.github/workflows/release.yaml@main secrets: inherit diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 229d21fb..31e259f2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,8 +20,8 @@ jobs: # - the repo's owner is Ocado Tech. # - a change is made to the default branch. if: | - github.repository_owner_id == 2088731 - # github.ref_name == github.event.repository.default_branch + github.repository_owner_id == 2088731 && + github.ref_name == github.event.repository.default_branch env: NODE_VERSION: 22 steps: