Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

fix: Var default_branch is unreliable in some contexts

Clémence Lesné4797ebc881c0
diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml
index 6647748..b2953ad 100644
--- a/.github/workflows/pipeline.yaml
+++ b/.github/workflows/pipeline.yaml
@@ -178,7 +178,7 @@ jobs:
uses: actions/[email protected]
with:
script: |
- const isMain = context.ref == `refs/heads/${context.payload.repository.default_branch}`;
+ const isMain = context.ref == `refs/heads/main`;
const repoName = context.repo.repo;
console.log(isMain ? 'Creating release for default branch' : 'Creating release for non-default branch');
@@ -205,7 +205,7 @@ jobs:
- create-release
- init
# Only publish on non-scheduled default branch
- if: (github.event_name != 'schedule') && (github.ref == 'refs/heads/${context.payload.repository.default_branch}')
+ if: (github.event_name != 'schedule') && (github.ref == 'refs/heads/main')
steps:
- name: publish release
id: publish-release