Skip to content

Commit 79cff76

Browse files
feat: enhance nightly build workflow with release condition and changelog generation
1 parent fbb4cbc commit 79cff76

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/nightly-build.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
FDROID_APK_PATH: ${{ steps.update-version.outputs.FDROID_APK_PATH }}
8080
RELEASE_NOTES: ${{ env.RELEASE_NOTES }}
8181
tag_commit: ${{ steps.check-nightly-tag-force-update.outputs.tag_commit }}
82+
release_required: ${{ steps.check-nightly-tag-force-update.outputs.release_required }}
8283
steps:
8384
- name: Fast Fail if secrets are missing
8485
if: ${{ env.KEYSTORE_CONTENT == '' || env.BUILD_JSON_CONTENT == '' }}
@@ -239,7 +240,7 @@
239240
release:
240241
needs: build
241242
runs-on: ubuntu-latest
242-
if: ${{ github.repository_owner == 'Acode-Foundation' && !inputs.is_PR && !inputs.skip_tagging_and_releases && needs.build.outputs.release_output_url }}
243+
if: ${{ github.repository_owner == 'Acode-Foundation' && !inputs.is_PR && !inputs.skip_tagging_and_releases && needs.build.outputs.release_output_url && needs.build.outputs.release_required == 'true' }}
243244
permissions:
244245
contents: write
245246
steps:
@@ -267,7 +268,7 @@
267268
id: gen-release-notes
268269
continue-on-error: true
269270
run: |
270-
RELEASE_NOTES=$(node utils/scripts/generate-release-notes.js ${{ github.repository_owner }} Acode ${{ github.sha }} --format md --from-tag ${{ needs.build.outputs.tag_commit }} --important-only --quiet || true)
271+
RELEASE_NOTES=$(node utils/scripts/generate-release-notes.js ${{ github.repository_owner }} Acode ${{ github.sha }} --format md --from-tag ${{ needs.build.outputs.tag_commit }} --important-only --quiet --changelog-only || true)
271272
{
272273
echo "RELEASE_NOTES<<EOF"
273274
echo "$RELEASE_NOTES"

0 commit comments

Comments
 (0)