Skip to content

Commit 681420a

Browse files
committed
Allow workflow to be triggered from command line
1 parent 3fadd18 commit 681420a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/actions/build-proxies/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ runs:
4747
run: |
4848
mkdir -p ./build
4949
ASSET_PATTERN="api-oas-specification-${{ inputs.apimEnv }}-*.zip"
50-
echo "Downloading assets matching $ASSET_PATTERN from release ${{ inputs.releaseVersion }}"
5150
gh release download "${{ inputs.releaseVersion }}" \
5251
--pattern "$ASSET_PATTERN" \
5352
--dir ./build

.github/workflows/release_created.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Github Release Created
33
on:
44
release:
55
types: ["published"] # Inherits all input defaults
6+
workflow_dispatch:
7+
inputs:
8+
release_tag:
9+
description: "Release tag to simulate (e.g., v1.0.0)"
10+
required: true
11+
type: string
612

713
concurrency:
814
group: ${{ github.workflow }}-${{ github.ref }}
@@ -27,7 +33,7 @@ jobs:
2733
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
2834
run: |
2935
bash .github/scripts/dispatch_internal_repo_workflow.sh \
30-
--releaseVersion "${{ github.event.release.tag_name }}" \
36+
--releaseVersion "${{ inputs.release_tag }}" \
3137
--targetWorkflow "dispatch-deploy-static-notify-supplier-api-env.yaml" \
3238
--targetEnvironment "main" \
3339
--targetAccountGroup "nhs-notify-supplier-api-nonprod" \
@@ -58,5 +64,5 @@ jobs:
5864
environment: "main"
5965
apimEnv: "int"
6066
runId: "${{ github.run_id }}"
61-
releaseVersion: "${{ github.event.release.tag_name }}"
67+
releaseVersion: "${{ inputs.release_tag }}"
6268
isRelease: true

0 commit comments

Comments
 (0)