Skip to content

Commit

Permalink
try to redirect to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
brokenpip3 committed Sep 23, 2024
1 parent 746f1a0 commit 59ff88d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ runs:
TEMPDIR="/tmp"
fi
echo "_LIB_PATH=$DEFAULT_BASE_DIR" >> $GITHUB_ENV
echo "_LIB_PATH=$DEFAULT_BASE_DIR" >> /tmp/bats-lib-path
echo "DEFAULT_BASE_DIR=$DEFAULT_BASE_DIR" >> $GITHUB_ENV
echo "CMD=$CMD" >> $GITHUB_ENV
echo "TEMPDIR=$TEMPDIR" >> $GITHUB_ENV
Expand All @@ -189,7 +189,7 @@ runs:
echo "SUPPORT_DESTDIR=${{ inputs.support-path }}" >> $GITHUB_ENV
fi
echo ${_LIB_PATH}
echo "_LIB_PATH=${_LIB_PATH}:${SUPPORT_DESTDIR%/*}" >> $GITHUB_ENV
echo "_LIB_PATH=${_LIB_PATH}:${SUPPORT_DESTDIR%/*}" >> /tmp/bats-lib-path
- name: "Set cache for Bats-support"
if: inputs.support-install == 'true'
Expand Down Expand Up @@ -232,7 +232,7 @@ runs:
echo "ASSERT_DESTDIR=${{ inputs.assert-path }}" >> $GITHUB_ENV
fi
echo ${_LIB_PATH}
echo "_LIB_PATH=${_LIB_PATH}:${ASSERT_DESTDIR%/*}" >> $GITHUB_ENV
echo "_LIB_PATH=${_LIB_PATH}:${ASSERT_DESTDIR%/*}" >> /tmp/bats-lib-path
- name: "Set cache for Bats-assert"
if: inputs.assert-install == 'true'
Expand Down Expand Up @@ -275,7 +275,7 @@ runs:
echo "DETIK_DESTDIR=${{ inputs.detik-path }}" >> $GITHUB_ENV
fi
echo $_LIB_PATH
echo "_LIB_PATH=${_LIB_PATH}:${DETIK_DESTDIR%/*}" >> $GITHUB_ENV
echo "_LIB_PATH=${_LIB_PATH}:${DETIK_DESTDIR%/*}" >> /tmp/bats-lib-path
- name: "Set cache for Bats-detik"
if: inputs.detik-install == 'true'
Expand Down Expand Up @@ -317,7 +317,7 @@ runs:
echo "FILE_DESTDIR=${{ inputs.file-path }}" >> $GITHUB_ENV
fi
echo $_LIB_PATH
echo "_LIB_PATH=${_LIB_PATH}:${FILE_DESTDIR%/*}" >> $GITHUB_ENV
echo "_LIB_PATH=${_LIB_PATH}:${FILE_DESTDIR%/*}" >> /tmp/bats-lib-path
- name: "Set cache for Bats-file"
if: inputs.file-install == 'true'
Expand Down Expand Up @@ -354,7 +354,8 @@ runs:
shell: bash
run: |
echo "${{env._LIB_PATH}}"
echo "lib-path=${_LIB_PATH}" >> $GITHUB_OUTPUT
echo "lib-path=$(cat /tmp/bats-lib-path)" >> $GITHUB_OUTPUT
rm /tmp/bats-lib-path
echo "Bats installed: ${{ (steps.bats-install.outputs.bats-installed != '') }}"
echo "Support installed: ${{ (steps.support-install.outputs.support-installed != '') }}"
echo "Assert installed: ${{ (steps.assert-install.outputs.assert-installed != '') }}"
Expand Down

0 comments on commit 59ff88d

Please sign in to comment.