Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/automated-deploy-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ jobs:
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
changed=$(git diff --name-only origin/main... | tr '\n' ' ')
fi
echo "DEBUG: Changed files: '$changed'"
echo "changed=$changed" >> $GITHUB_OUTPUT
if [ -z "$changed" ]; then
echo "No changed files detected."
else
echo "DEBUG: Changed files: '$changed'"
echo "changed=$changed" >> $GITHUB_OUTPUT
fi

deductions-ci:
if: contains(needs.get-changed-files.outputs.changed, 'stacks/mesh-forwarder') || contains(needs.get-changed-files.outputs.changed, '.github/workflows/automated-deploy-stack.yml')
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/deploy-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ on:
default: false
description: "Do we need to build any lambdas before deploying?"
type: boolean
workflow_version:
default: v3
description: "The workflow version to use when calling this workflow from another repo - e.g. v3"
type: string
required: false

permissions:
pull-requests: write
Expand Down Expand Up @@ -151,7 +156,7 @@ jobs:
with:
repository: NHSDigital/orphaned-record-continuity-infrastructure
fetch-depth: 0
ref: ${{ github.ref }}
ref: ${{ !contains(github.repository, 'infrastructure') && inputs.workflow_version || github.ref }}

- name: Configure AWS Credentials (ReadWrite)
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6.0.0
Expand Down
Loading