Skip to content

Commit 7535ebe

Browse files
committed
Minor changes
1 parent deb10fe commit 7535ebe

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/auto-nightly.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,16 @@ jobs:
5555
printf '%s\n' "::notice::SHA-256: ${ZIP_SHA256:-Missing}"
5656
printf '%s\n' "::notice::MD5: ${ZIP_MD5:-Missing}"
5757
: "${ZIP_FOLDER:?}" || exit "${?}"
58-
- name: "Do we need to release the nightly?"
58+
- name: "Do we need to publish the nightly build?"
5959
id: "nightly-logic"
6060
shell: bash
6161
run: |
62-
# Do we need to release the nightly?
63-
tag_count="$(git ls-remote --tags -- '${{ github.server_url }}/${{ github.repository }}.git' | wc -l)" || tag_count=0
62+
# Do we need to publish the nightly build?
6463
CREATE_RELEASE='false'
65-
if test "${tag_count?}" != 0 && '${{ github.run_attempt == '1' && steps.build.outputs.ZIP_BUILD_TYPE_SUPPORTED == 'true' && steps.build.outputs.ZIP_IS_ALPHA == 'true' }}'; then
64+
if '${{ github.run_attempt == '1' && steps.build.outputs.ZIP_BUILD_TYPE_SUPPORTED == 'true' && steps.build.outputs.ZIP_IS_ALPHA == 'true' }}'; then
6665
CREATE_RELEASE='true'
6766
fi
68-
printf 'CREATE_RELEASE=%s\n' "${CREATE_RELEASE:?}" >> "${GITHUB_OUTPUT?}"
67+
printf 'CREATE_RELEASE=%s\n' "${CREATE_RELEASE:?}" 1>> "${GITHUB_OUTPUT?}"
6968
printf '%s\n' "${CREATE_RELEASE:?}"
7069
- name: "Delete previous nightly release"
7170
uses: actions/github-script@v7

0 commit comments

Comments
 (0)