Merge pull request #16 from ttdennis/set-output
Fix deprecated set-output
This commit is contained in:
commit
56b6651677
10 changed files with 27 additions and 27 deletions
4
.github/workflows/build-nmap.yml
vendored
4
.github/workflows/build-nmap.yml
vendored
|
@ -151,12 +151,12 @@ jobs:
|
||||||
git fetch --quiet --prune --tags
|
git fetch --quiet --prune --tags
|
||||||
if [[ $(git tag -l | grep nmap-v${{ needs.build-x86.outputs.version }} | wc -l) -gt 0 ]]; then
|
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 "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
|
else
|
||||||
echo "Tag for nmap-v${{ needs.build-x86.outputs.version }} missing. Starting release creation."
|
echo "Tag for nmap-v${{ needs.build-x86.outputs.version }} missing. Starting release creation."
|
||||||
git tag "nmap-v${{ needs.build-x86.outputs.version }}"
|
git tag "nmap-v${{ needs.build-x86.outputs.version }}"
|
||||||
git push origin "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
|
fi
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
|
|
4
.github/workflows/build-openssh.yml
vendored
4
.github/workflows/build-openssh.yml
vendored
|
@ -113,11 +113,11 @@ jobs:
|
||||||
set +e
|
set +e
|
||||||
if git rev-list "openssh-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
|
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 "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
|
else
|
||||||
git tag "openssh-v${{ needs.build-x86.outputs.version }}"
|
git tag "openssh-v${{ needs.build-x86.outputs.version }}"
|
||||||
git push origin "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
|
fi
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
|
|
4
.github/workflows/build-socat.yml
vendored
4
.github/workflows/build-socat.yml
vendored
|
@ -141,11 +141,11 @@ jobs:
|
||||||
set +e
|
set +e
|
||||||
if git rev-list "socat-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
|
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 "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
|
else
|
||||||
git tag "socat-v${{ needs.build-x86.outputs.version }}"
|
git tag "socat-v${{ needs.build-x86.outputs.version }}"
|
||||||
git push origin "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
|
fi
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
|
|
4
.github/workflows/build-tcpdump.yml
vendored
4
.github/workflows/build-tcpdump.yml
vendored
|
@ -112,11 +112,11 @@ jobs:
|
||||||
set +e
|
set +e
|
||||||
if git rev-list "tcpdump-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
|
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 "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
|
else
|
||||||
git tag "tcpdump-v${{ needs.build-x86.outputs.version }}"
|
git tag "tcpdump-v${{ needs.build-x86.outputs.version }}"
|
||||||
git push origin "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
|
fi
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
|
|
|
@ -51,9 +51,9 @@ main() {
|
||||||
cp "${BUILD_DIRECTORY}/gdb_build/gdbserver/gdbserver" "${OUTPUT_DIRECTORY}/gdbserver${GDBSERVER_VERSION}"
|
cp "${BUILD_DIRECTORY}/gdb_build/gdbserver/gdbserver" "${OUTPUT_DIRECTORY}/gdbserver${GDBSERVER_VERSION}"
|
||||||
echo "[+] Finished building GDB ${CURRENT_ARCH}"
|
echo "[+] Finished building GDB ${CURRENT_ARCH}"
|
||||||
|
|
||||||
echo ::set-output name=PACKAGED_NAME::"gdb${GDB_VERSION}"
|
echo "PACKAGED_NAME=gdb${GDB_VERSION}" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_NAME_PATH::"/output/*"
|
echo "PACKAGED_NAME_PATH=/output/*" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_VERSION::"${version_number}"
|
echo "PACKAGED_VERSION=${version_number}" >> $GITHUB_OUTPUT
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
|
@ -49,9 +49,9 @@ main() {
|
||||||
echo "[+] Finished building OpenSSH ${CURRENT_ARCH}"
|
echo "[+] Finished building OpenSSH ${CURRENT_ARCH}"
|
||||||
|
|
||||||
OPENSSH_VERSION=$(echo $OPENSSH_VERSION | sed 's/-//')
|
OPENSSH_VERSION=$(echo $OPENSSH_VERSION | sed 's/-//')
|
||||||
echo ::set-output name=PACKAGED_NAME::"${OPENSSH_VERSION}"
|
echo "PACKAGED_NAME=${OPENSSH_VERSION} >> $GITHUB_OUTPUT"
|
||||||
echo ::set-output name=PACKAGED_NAME_PATH::"/output/*"
|
echo "PACKAGED_NAME_PATH=/output/* >> $GITHUB_OUTPUT"
|
||||||
echo ::set-output name=PACKAGED_VERSION::"${version_number}"
|
echo "PACKAGED_VERSION=${version_number} >> $GITHUB_OUTPUT"
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
|
@ -41,9 +41,9 @@ main() {
|
||||||
cp "${BUILD_DIRECTORY}/socat/socat" "${OUTPUT_DIRECTORY}/socat${version}"
|
cp "${BUILD_DIRECTORY}/socat/socat" "${OUTPUT_DIRECTORY}/socat${version}"
|
||||||
echo "[+] Finished building socat ${CURRENT_ARCH}"
|
echo "[+] Finished building socat ${CURRENT_ARCH}"
|
||||||
|
|
||||||
echo ::set-output name=PACKAGED_NAME::"socat${version}"
|
echo "PACKAGED_NAME=socat${version}" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_NAME_PATH::"${OUTPUT_DIRECTORY}/*"
|
echo "PACKAGED_NAME_PATH=${OUTPUT_DIRECTORY}/*" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_VERSION::"${version_number}"
|
echo "PACKAGED_VERSION=${version_number}" >> $GITHUB_OUTPUT
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
|
@ -39,9 +39,9 @@ main() {
|
||||||
cp "${BUILD_DIRECTORY}/tcpdump/tcpdump" "${OUTPUT_DIRECTORY}/tcpdump${version}"
|
cp "${BUILD_DIRECTORY}/tcpdump/tcpdump" "${OUTPUT_DIRECTORY}/tcpdump${version}"
|
||||||
echo "[+] Finished building tcpdump ${CURRENT_ARCH}"
|
echo "[+] Finished building tcpdump ${CURRENT_ARCH}"
|
||||||
|
|
||||||
echo ::set-output name=PACKAGED_NAME::"tcpdump${version}"
|
echo "PACKAGED_NAME=tcpdump${version}" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_NAME_PATH::"${OUTPUT_DIRECTORY}/*"
|
echo "PACKAGED_NAME_PATH=${OUTPUT_DIRECTORY}/*" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_VERSION::"${version_number}"
|
echo "PACKAGED_VERSION=${version_number}" >> $GITHUB_OUTPUT
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
|
@ -50,8 +50,8 @@ main() {
|
||||||
cp "${BUILD_DIRECTORY}/tcpreplay/tcpreplay" "${OUTPUT_DIRECTORY}/tcpreplay"
|
cp "${BUILD_DIRECTORY}/tcpreplay/tcpreplay" "${OUTPUT_DIRECTORY}/tcpreplay"
|
||||||
echo "[+] Finished building tcpreplay ${CURRENT_ARCH}"
|
echo "[+] Finished building tcpreplay ${CURRENT_ARCH}"
|
||||||
|
|
||||||
echo ::set-output name=PACKAGED_NAME::"tcpreplay${version}"
|
echo "PACKAGED_NAME=tcpreplay${version}"
|
||||||
echo ::set-output name=PACKAGED_NAME_PATH::"${OUTPUT_DIRECTORY}/*"
|
echo "PACKAGED_NAME_PATH=${OUTPUT_DIRECTORY}/*"
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
|
@ -53,13 +53,13 @@ cd "$tmp_dir"
|
||||||
TARBALL="nmap-${version}-${arch}-portable.tar.gz"
|
TARBALL="nmap-${version}-${arch}-portable.tar.gz"
|
||||||
tar czf "${output}/${TARBALL}" -C "$tmp_dir" .
|
tar czf "${output}/${TARBALL}" -C "$tmp_dir" .
|
||||||
cp "${output}/${TARBALL}" /packaged
|
cp "${output}/${TARBALL}" /packaged
|
||||||
echo ::set-output name=PACKAGED_TARBALL::${TARBALL}
|
echo "PACKAGED_TARBALL=${TARBALL}" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_TARBALL_PATH::"/packaged/${TARBALL}"
|
echo "PACKAGED_TARBALL_PATH=/packaged/${TARBALL}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
ZIP="nmap-${version}-${arch}-portable.zip"
|
ZIP="nmap-${version}-${arch}-portable.zip"
|
||||||
zip -r -q "${output}/${ZIP}" .
|
zip -r -q "${output}/${ZIP}" .
|
||||||
cp "${output}/${ZIP}" /packaged
|
cp "${output}/${ZIP}" /packaged
|
||||||
echo ::set-output name=PACKAGED_ZIP::${ZIP}
|
echo "PACKAGED_ZIP=${ZIP}" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=PACKAGED_ZIP_PATH::"/packaged/${ZIP}"
|
echo "PACKAGED_ZIP_PATH=/packaged/${ZIP}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
echo ::set-output name=PACKAGED_VERSION::${version}
|
echo "PACKAGED_VERSION=${version}" >> $GITHUB_OUTPUT
|
Loading…
Reference in a new issue