Skip to content

Commit ca04e9e

Browse files
authored
Update auto-nightly.yml
1 parent 59a1d57 commit ca04e9e

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/auto-nightly.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
group: "${{ github.repository_id }}-${{ github.workflow }}"
1313
cancel-in-progress: true
1414
jobs:
15-
base-job:
15+
nightly:
1616
name: "Nightly"
1717
runs-on: ubuntu-latest
1818
if: "${{ github.event_name == 'push' && github.ref_type == 'branch' }}"
@@ -31,8 +31,6 @@ jobs:
3131
id: "build"
3232
shell: bash
3333
run: |
34-
echo '${{ github.run_attempt }}'
35-
exit 1
3634
# Building nightly...
3735
BUILD_TYPE='oss' '${{ github.workspace }}/build.sh'
3836
- name: "ZIP info"
@@ -63,13 +61,8 @@ jobs:
6361
run: |
6462
# Do we need to release the nightly?
6563
tag_count="$(git ls-remote --tags -- '${{ github.server_url }}/${{ github.repository }}.git' | wc -l)" || tag_count=0
66-
git fetch -q origin
6764
CREATE_RELEASE='false'
68-
IS_LATEST_COMMIT='false'
69-
if test '${{ github.sha }}' = "$(git log -n 1 --pretty='%H' 'origin/main' || :)"; then
70-
IS_LATEST_COMMIT='true'
71-
fi
72-
if test "${tag_count?}" != 0 && test "${IS_LATEST_COMMIT:?}" = 'true' && '${{ steps.build.outputs.ZIP_BUILD_TYPE_SUPPORTED == 'true' && steps.build.outputs.ZIP_IS_ALPHA == 'true' }}'; then
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
7366
CREATE_RELEASE='true'
7467
fi
7568
printf 'CREATE_RELEASE=%s\n' "${CREATE_RELEASE:?}" >> "${GITHUB_OUTPUT?}"

0 commit comments

Comments
 (0)