Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(ci): use in release main-branch guard

justindc860d8f97fa
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 6977b15a6..b33d5f159 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -24,8 +24,8 @@ jobs:
- name: Enforce dispatch from main
run: |
- if [ "${{ github.ref }}" != "refs/heads/main" ]; then
- echo "::error::release.yml must be dispatched from main (current ref: ${{ github.ref }}). The Chart.yaml bump and tag push will not land on main otherwise."
+ if [ "$GITHUB_REF" != "refs/heads/main" ]; then
+ echo "::error::release.yml must be dispatched from main (current ref: $GITHUB_REF). The Chart.yaml bump and tag push will not land on main otherwise."
exit 1
fi