Merge pull request #16 from ttdennis/set-output

Fix deprecated set-output
This commit is contained in:
hnzlmnn-ernw 2023-05-22 14:57:24 +02:00 committed by GitHub
commit 56b6651677
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 27 additions and 27 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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