aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-05-31 18:05:54 +0100
committerGravatar Chris Lovering <[email protected]>2023-05-31 18:06:04 +0100
commitbce7022f6d551cb8ec9a0d7e1871cfc0a0dbf17e (patch)
tree9115987ed6be898a2c3990969fc8aa37e06e64ce
parentBump Python version to 3.11 (diff)
Hardcode main branch reference in CI
Not doing so caused a bug, as the preious code resolved to just "main" not what we needed.
-rw-r--r--.github/workflows/build-deploy.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/build-deploy.yaml b/.github/workflows/build-deploy.yaml
index 61541cd..a2ea586 100644
--- a/.github/workflows/build-deploy.yaml
+++ b/.github/workflows/build-deploy.yaml
@@ -38,7 +38,7 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v4
with:
- push: ${{ github.ref == github.event.repository.default_branch }}
+ push: ${{ github.ref == 'refs/heads/main' }}
cache-from: type=registry,ref=ghcr.io/python-discord/king-arthur:latest
cache-to: type=inline
tags: |
@@ -51,7 +51,7 @@ jobs:
name: Deploy
runs-on: ubuntu-latest
needs: build
- if: ${{ github.ref == github.event.repository.default_branch }}
+ if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Checkout code
uses: actions/checkout@v3