Skip to content

Commit

Permalink
Default Buildkite base branch and branch to update to staging
Browse files Browse the repository at this point in the history
  • Loading branch information
varadarajan-tw committed Oct 18, 2023
1 parent 04b8599 commit 5a52cd4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/publish-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
- add-tar-release-pipeline-1
# Manual trigger
workflow_dispatch:
inputs:
buildkite_branch:
description: 'Branch to trigger the Buildkite pipeline on'
default: 'staging'

jobs:
build-and-publish:
Expand Down Expand Up @@ -70,7 +74,8 @@ jobs:
env:
ACTION_DESTINATIONS_VERSION: ${{ steps.publish-packages.outputs.ACTION_DESTINATIONS_VERSION }}
ACTIONS_CORE_VERSION: ${{ steps.publish-packages.outputs.ACTIONS_CORE_VERSION }}
BRANCH_NAME: ${{ github.ref_name }}
BRANCH_TO_UPDATE: ${{ github.ref_name }}
BUILDKITE_BRANCH: ci-test
RUN_ID: ${{ github.run_id }}
BUILDKITE_TOKEN: ${{ secrets.BUILDKITE_TOKEN }}
BUILDKITE_PIPELINE_URL: ${{ secrets.BUILDKITE_PIPELINE_URL }}
Expand Down
4 changes: 2 additions & 2 deletions scripts/trigger-buildkite-pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
payload=$(cat <<EOF
{
"commit":"HEAD",
"branch":"ci-test",
"branch":"${BUILDKITE_BRANCH:-staging}",,
"message": ":github: Triggered from Github Actions Run: $RUN_ID",
"env":{
"BRANCH_TO_UPDATE": "$BRANCH_NAME",
"BRANCH_TO_UPDATE": "$BRANCH_TO_UPDATE",
"ACTIONS_RELEASE": "false",
"CREATE_PR": "false",
"UPGRADE_ACTION_DESTINATIONS": "true",
Expand Down

0 comments on commit 5a52cd4

Please sign in to comment.