Skip to content

Commit

Permalink
Merge pull request #16 from ttdennis/set-output
Browse files Browse the repository at this point in the history
Fix deprecated set-output
  • Loading branch information
hnzlmnn-ernw authored May 22, 2023
2 parents 43b769f + d7e0031 commit 56b6651
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-nmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ jobs:
git fetch --quiet --prune --tags
if [[ $(git tag -l | grep nmap-v${{ needs.build-x86.outputs.version }} | wc -l) -gt 0 ]]; then
echo "Tag for nmap-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo ::set-output name=NEW_RELEASE::"false"
echo "NEW_RELEASE=false" >> $GITHUB_OUTPUT
else
echo "Tag for nmap-v${{ needs.build-x86.outputs.version }} missing. Starting release creation."
git tag "nmap-v${{ needs.build-x86.outputs.version }}"
git push origin "nmap-v${{ needs.build-x86.outputs.version }}"
echo ::set-output name=NEW_RELEASE::"true"
echo "NEW_RELEASE=true" >> $GITHUB_OUTPUT
fi
- name: Create Release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-openssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ jobs:
set +e
if git rev-list "openssh-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
echo "Tag for openssh-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo ::set-output name=NEW_RELEASE::"false"
echo "NEW_RELEASE=false" >> $GITHUB_OUTPUT
else
git tag "openssh-v${{ needs.build-x86.outputs.version }}"
git push origin "openssh-v${{ needs.build-x86.outputs.version }}"
echo ::set-output name=NEW_RELEASE::"true"
echo "NEW_RELEASE=true" >> $GITHUB_OUTPUT
fi
- name: Create Release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-socat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ jobs:
set +e
if git rev-list "socat-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
echo "Tag for socat-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo ::set-output name=NEW_RELEASE::"false"
echo "NEW_RELEASE=false" >> $GITHUB_OUTPUT
else
git tag "socat-v${{ needs.build-x86.outputs.version }}"
git push origin "socat-v${{ needs.build-x86.outputs.version }}"
echo ::set-output name=NEW_RELEASE::"true"
echo "NEW_RELEASE=true" >> $GITHUB_OUTPUT
fi
- name: Create Release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-tcpdump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ jobs:
set +e
if git rev-list "tcpdump-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
echo "Tag for tcpdump-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo ::set-output name=NEW_RELEASE::"false"
echo "NEW_RELEASE=false" >> $GITHUB_OUTPUT
else
git tag "tcpdump-v${{ needs.build-x86.outputs.version }}"
git push origin "tcpdump-v${{ needs.build-x86.outputs.version }}"
echo ::set-output name=NEW_RELEASE::"true"
echo "NEW_RELEASE=true" >> $GITHUB_OUTPUT
fi
- name: Create Release
Expand Down
6 changes: 3 additions & 3 deletions build/targets/build_gdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ main() {
cp "${BUILD_DIRECTORY}/gdb_build/gdbserver/gdbserver" "${OUTPUT_DIRECTORY}/gdbserver${GDBSERVER_VERSION}"
echo "[+] Finished building GDB ${CURRENT_ARCH}"

echo ::set-output name=PACKAGED_NAME::"gdb${GDB_VERSION}"
echo ::set-output name=PACKAGED_NAME_PATH::"/output/*"
echo ::set-output name=PACKAGED_VERSION::"${version_number}"
echo "PACKAGED_NAME=gdb${GDB_VERSION}" >> $GITHUB_OUTPUT
echo "PACKAGED_NAME_PATH=/output/*" >> $GITHUB_OUTPUT
echo "PACKAGED_VERSION=${version_number}" >> $GITHUB_OUTPUT
}

main
6 changes: 3 additions & 3 deletions build/targets/build_openssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ main() {
echo "[+] Finished building OpenSSH ${CURRENT_ARCH}"

OPENSSH_VERSION=$(echo $OPENSSH_VERSION | sed 's/-//')
echo ::set-output name=PACKAGED_NAME::"${OPENSSH_VERSION}"
echo ::set-output name=PACKAGED_NAME_PATH::"/output/*"
echo ::set-output name=PACKAGED_VERSION::"${version_number}"
echo "PACKAGED_NAME=${OPENSSH_VERSION} >> $GITHUB_OUTPUT"
echo "PACKAGED_NAME_PATH=/output/* >> $GITHUB_OUTPUT"
echo "PACKAGED_VERSION=${version_number} >> $GITHUB_OUTPUT"
}

main
6 changes: 3 additions & 3 deletions build/targets/build_socat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ main() {
cp "${BUILD_DIRECTORY}/socat/socat" "${OUTPUT_DIRECTORY}/socat${version}"
echo "[+] Finished building socat ${CURRENT_ARCH}"

echo ::set-output name=PACKAGED_NAME::"socat${version}"
echo ::set-output name=PACKAGED_NAME_PATH::"${OUTPUT_DIRECTORY}/*"
echo ::set-output name=PACKAGED_VERSION::"${version_number}"
echo "PACKAGED_NAME=socat${version}" >> $GITHUB_OUTPUT
echo "PACKAGED_NAME_PATH=${OUTPUT_DIRECTORY}/*" >> $GITHUB_OUTPUT
echo "PACKAGED_VERSION=${version_number}" >> $GITHUB_OUTPUT
}

main
6 changes: 3 additions & 3 deletions build/targets/build_tcpdump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ main() {
cp "${BUILD_DIRECTORY}/tcpdump/tcpdump" "${OUTPUT_DIRECTORY}/tcpdump${version}"
echo "[+] Finished building tcpdump ${CURRENT_ARCH}"

echo ::set-output name=PACKAGED_NAME::"tcpdump${version}"
echo ::set-output name=PACKAGED_NAME_PATH::"${OUTPUT_DIRECTORY}/*"
echo ::set-output name=PACKAGED_VERSION::"${version_number}"
echo "PACKAGED_NAME=tcpdump${version}" >> $GITHUB_OUTPUT
echo "PACKAGED_NAME_PATH=${OUTPUT_DIRECTORY}/*" >> $GITHUB_OUTPUT
echo "PACKAGED_VERSION=${version_number}" >> $GITHUB_OUTPUT
}

main
4 changes: 2 additions & 2 deletions build/targets/build_tcpreplay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ main() {
cp "${BUILD_DIRECTORY}/tcpreplay/tcpreplay" "${OUTPUT_DIRECTORY}/tcpreplay"
echo "[+] Finished building tcpreplay ${CURRENT_ARCH}"

echo ::set-output name=PACKAGED_NAME::"tcpreplay${version}"
echo ::set-output name=PACKAGED_NAME_PATH::"${OUTPUT_DIRECTORY}/*"
echo "PACKAGED_NAME=tcpreplay${version}"
echo "PACKAGED_NAME_PATH=${OUTPUT_DIRECTORY}/*"
}

main
10 changes: 5 additions & 5 deletions package/targets/nmap/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ cd "$tmp_dir"
TARBALL="nmap-${version}-${arch}-portable.tar.gz"
tar czf "${output}/${TARBALL}" -C "$tmp_dir" .
cp "${output}/${TARBALL}" /packaged
echo ::set-output name=PACKAGED_TARBALL::${TARBALL}
echo ::set-output name=PACKAGED_TARBALL_PATH::"/packaged/${TARBALL}"
echo "PACKAGED_TARBALL=${TARBALL}" >> $GITHUB_OUTPUT
echo "PACKAGED_TARBALL_PATH=/packaged/${TARBALL}" >> $GITHUB_OUTPUT

ZIP="nmap-${version}-${arch}-portable.zip"
zip -r -q "${output}/${ZIP}" .
cp "${output}/${ZIP}" /packaged
echo ::set-output name=PACKAGED_ZIP::${ZIP}
echo ::set-output name=PACKAGED_ZIP_PATH::"/packaged/${ZIP}"
echo "PACKAGED_ZIP=${ZIP}" >> $GITHUB_OUTPUT
echo "PACKAGED_ZIP_PATH=/packaged/${ZIP}" >> $GITHUB_OUTPUT

echo ::set-output name=PACKAGED_VERSION::${version}
echo "PACKAGED_VERSION=${version}" >> $GITHUB_OUTPUT

0 comments on commit 56b6651

Please sign in to comment.