Skip to content

Commit 5f7be27

Browse files
authored
Fix working directory path syntax in action.yml (#116)
* Fix working directory path syntax in action.yml * Fix working directory path for drift detection step * Implement drift detection mode check in action Add conditional check for drift detection mode in action.yml * Fix working directory path syntax in action.yml * Update component path to use relative path * Set atmos-version in test-changes-exists.yml Update atmos-version to v0.191.0 in workflow. * Update test-changes-exists.yml * Remove atmos-version from test workflow Remove atmos-version from the workflow configuration.
1 parent 4e7eb40 commit 5f7be27

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,12 @@ runs:
288288
STEP_SUMMARY_FILE="$GITHUB_WORKSPACE/metadata/step-summary-${COMPONENT_SLUG}.md"
289289
SUMMARY_FILE="$GITHUB_WORKSPACE/metadata/summary-${COMPONENT_SLUG}.md"
290290
291+
COMPONENT_RELPATH=$(realpath --relative-to="${PWD}" ${COMPONENT_PATH})
292+
291293
echo "stack_name=${STACK_NAME}" >> $GITHUB_OUTPUT
292294
echo "component_name=${COMPONENT_NAME}" >> $GITHUB_OUTPUT
293295
echo "component_slug=${COMPONENT_SLUG}" >> $GITHUB_OUTPUT
294-
echo "component_path=${COMPONENT_PATH}" >> $GITHUB_OUTPUT
296+
echo "component_path=${COMPONENT_RELPATH}" >> $GITHUB_OUTPUT
295297
echo "cache-key=${COMPONENT_CACHE_KEY}" >> $GITHUB_OUTPUT
296298
echo "plan_file=${PLAN_FILE}" >> $GITHUB_OUTPUT
297299
echo "plan_file_json=${PLAN_FILE_JSON}" >> $GITHUB_OUTPUT
@@ -566,7 +568,8 @@ runs:
566568
- name: Publish Summary or Generate GitHub Issue Description for Drift Detection
567569
id: summary
568570
shell: bash
569-
working-directory: ./${{ steps.vars.outputs.component_path }}
571+
working-directory: ${{ steps.vars.outputs.component_path }}
572+
570573
run: |
571574
if [[ "${{ inputs.drift-detection-mode-enabled }}" == "true" ]]; then
572575
STEP_SUMMARY_FILE="${{ steps.vars.outputs.issue_file }}"

0 commit comments

Comments
 (0)