diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 6d77141..6569de3 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -18,13 +18,13 @@ on: default: true schedule: - cron: '0 * * * *' -concurrency: - group: ${{ github.head_ref || github.run_id }} - cancel-in-progress: true jobs: release-check: permissions: write-all runs-on: ubuntu-latest + concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true steps: - name: Checkout uses: actions/checkout@v4 @@ -50,7 +50,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | should_build=$(python check_resource_updates.py) - if [ "should_build" = "True" ]; then + if [ "$should_build" = "True" ]; then echo "SHOULD_BUILD=1" >> $GITHUB_OUTPUT else echo "SHOULD_BUILD=0" >> $GITHUB_OUTPUT @@ -64,6 +64,9 @@ jobs: uses: ./.github/workflows/build-apk.yml if: ${{ needs.release-check.outputs.SHOULD_BUILD == 1 }} secrets: inherit + concurrency: + group: Auto-Release-${{ github.head_ref || github.run_id }} + cancel-in-progress: true with: TELEGRAM_NO_ROOT_UPLOAD: true TELEGRAM_ROOT_UPLOAD: true diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index bd89e0c..1cd7aa9 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -6,6 +6,11 @@ env: on: workflow_call: inputs: + GITHUB_UPLOAD: + description: "Upload to GitHub" + required: false + type: boolean + default: true TELEGRAM_NO_ROOT_UPLOAD: description: "Upload Non Rooted APKs to Telegram" required: false @@ -16,6 +21,31 @@ on: required: false type: boolean default: false + APPRISE_NOTIFY: + description: "Use Apprise to Notify" + required: false + type: boolean + default: false + VIRUSTOTAL_SCAN: + description: "Scan apks with VirusTotal" + required: false + type: boolean + default: false + CLEANUP: + description: "Clear GitHub(Useful if Telegram upload is enabled)" + required: false + type: boolean + default: false + COMMIT_CHANGELOG: + description: "Update Changelog" + type: boolean + required: false + default: true + DEBUG_ENABLED: + type: boolean + description: 'Run the build with tmate debugging enabled.' + required: false + default: false workflow_dispatch: inputs: GITHUB_UPLOAD: