Skip to content

Commit

Permalink
feat: DRY ref to main branch in CI (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
lostbean authored Jul 4, 2024
1 parent 31325f1 commit f32ef8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
branches:
- main

env:
MAIN_BRANCH: ${{ 'refs/heads/main' }}

jobs:
check_nix:
name: Basic Check
Expand Down Expand Up @@ -75,7 +78,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Publish images
if: github.ref == 'refs/heads/main'
if: github.ref == env.MAIN_BRANCH
run: |
nix run ./#publish-kardinal-manager-container
nix run ./#publish-kardinal-cli-container
Expand Down

0 comments on commit f32ef8c

Please sign in to comment.