Skip to content

Commit

Permalink
Check the copy path before copying
Browse files Browse the repository at this point in the history
  • Loading branch information
Hook25 committed Oct 2, 2024
1 parent cf1f126 commit c29c6cc
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/actions/checkbox_source_deb/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,21 @@ runs:
echo "::group::Dumping launcher overrides"
echo "$INPUT_LAUNCHER_OVERRIDE" | tee launcher_override.conf
echo "::endgroup::"
- name: Grosshack
- name: Workaroud cwd
shell: bash
run: |
mv ${{ github.action_path }}/../../../tools/ .
# this allows us to dispatch the action and the attachments with relative
# paths even when called form outside the Checkbox repo
action_path=$(realpath ${{ github.action_path }}/../../../tools/)
workdir_path=$(./tools)
if [ ! -e "$workdir_path" ]
cp -rT "$action_path" "$workdir_path"
fi
if [ "$action_path" = "$workdir_path" ]; then
echo "Skipping copy as the action is already running in workdir"
else
cp -rT "$action_path" "$workdir_path"
fi
- name: Submit and monitor job
uses: canonical/testflinger/.github/actions/submit@main
with:
Expand Down

0 comments on commit c29c6cc

Please sign in to comment.