Skip to content

Commit

Permalink
Small fix for the action - place binaries in a bin directory
Browse files Browse the repository at this point in the history
  • Loading branch information
instantiator committed Feb 9, 2025
1 parent 8138890 commit 3cab278
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion download-latest-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ wget -O $ZIP_PATH $LATEST_RELEASE_DOWNLOAD_URL
unzip -o $ZIP_PATH -d $TMP_DIR

# copy the binaries into the target directory
mkdir -p ${TARGET_DIRECTORY}
for BINARY in "${BINARIES[@]}"; do
# establish binary file names (suffix .exe for Windows)
if [ "$SYSTEM" == "win-x64" ]; then
Expand All @@ -91,6 +92,6 @@ for BINARY in "${BINARIES[@]}"; do

echo "Copying from: ${TMP_DIR}/release/${SYSTEM}/${BINARY_FILE}"
echo "Copying to: ${TARGET_DIRECTORY}/${BINARY_FILE}"
cp ${TMP_DIR}/release/${SYSTEM}/${BINARY_FILE} ${TARGET_DIRECTORY}/${BINARY_FILE}
cp -rf ${TMP_DIR}/release/${SYSTEM}/${BINARY_FILE} ${TARGET_DIRECTORY}/${BINARY_FILE}
chmod +x ${TARGET_DIRECTORY}/${BINARY_FILE}
done
4 changes: 2 additions & 2 deletions format-thread/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
[[ ! $(type -P "Presence.SocialFormat.Console") ]] && \
wget https://raw.githubusercontent.com/instantiator/presence/refs/heads/main/download-latest-binaries.sh && \
chmod +x download-latest-binaries.sh && \
./download-latest-binaries.sh --system linux-x64 --target-directory .
./download-latest-binaries.sh --system linux-x64 --target-directory ./bin
- name: Format thread
id: format-thread
shell: bash
Expand All @@ -33,7 +33,7 @@ runs:
INPUT_FORMAT: ${{ inputs.input-format }}
OUTPUT_FORMAT: ${{ inputs.output-format }}
run: |
export THREAD=$(./Presence.SocialFormat.Console --networks $NETWORKS ${INPUT_FILE:+"--input-file $INPUT_FILE" } ${INPUT_FORMAT:+"--input-format $INPUT_FORMAT" } ${OUTPUT_FORMAT:+"--output-format $OUTPUT_FORMAT" })
export THREAD=$(./bin/Presence.SocialFormat.Console --networks $NETWORKS ${INPUT_FILE:+"--input-file $INPUT_FILE" } ${INPUT_FORMAT:+"--input-format $INPUT_FORMAT" } ${OUTPUT_FORMAT:+"--output-format $OUTPUT_FORMAT" })
echo "thread=$(echo $THREAD)" >> "$GITHUB_OUTPUT"
outputs:
format-response:
Expand Down

0 comments on commit 3cab278

Please sign in to comment.