Skip to content

Commit f8b19ee

Browse files
committed
Update Direwolf workflow and runner script to use HEROKU_CLI_CHANNEL (defaulting to stable) instead of HEROKU_CLI_VERSION, keeping release-channel propagation consistent across the CI trigger payload
1 parent 85679ea commit f8b19ee

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/direwolf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ jobs:
3535
- name: run direwolf suite
3636
run: ./scripts/direwolf-test-run
3737
env:
38-
HEROKU_CLI_VERSION: ${{ inputs.releaseChannel }}
38+
HEROKU_CLI_CHANNEL: ${{ inputs.releaseChannel }}
3939
DIREWOLF_TOKEN: ${{ secrets.DEV_TOOLING_DIREWOLF_TOKEN }}
4040
DIREWOLF_CLOUD_UUID: ${{ secrets.DIREWOLF_CLOUD_UUID_PRODUCTION }}

scripts/direwolf-test-run

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ set -euo pipefail
44

55
DIREWOLF_SUITE="cli"
66

7-
# default CLI version is stable
8-
HEROKU_CLI_VERSION=${HEROKU_CLI_VERSION:="stable"}
7+
# default CLI channel is stable
8+
HEROKU_CLI_CHANNEL=${HEROKU_CLI_CHANNEL:="stable"}
99

1010
DIREWOLF_URL="https://$DIREWOLF_TOKEN@direwolf-api.herokai.com"
1111

1212
POST_BODY=$(jq --null-input \
1313
--arg cloud "$DIREWOLF_CLOUD_UUID" \
1414
--arg suite "$DIREWOLF_SUITE" \
15-
--arg env "$HEROKU_CLI_VERSION" \
16-
'{"cloud": { "id": $cloud }, "suite": { "label": $suite }, "env": { "HEROKU_CLI_VERSION": $env }}')
15+
--arg channel "$HEROKU_CLI_CHANNEL" \
16+
'{"cloud": { "id": $cloud }, "suite": { "label": $suite }, "env": { "HEROKU_CLI_CHANNEL": $channel }}')
1717

1818
echo "Enqueuing: $POST_BODY"
1919

0 commit comments

Comments
 (0)