🐛 Added concurrency back

This commit is contained in:
Nikhil Badyal
2024-04-16 14:16:38 +05:30
parent f31f916ef0
commit 11139217f8
2 changed files with 37 additions and 4 deletions
+7 -4
View File
@@ -18,13 +18,13 @@ on:
default: true default: true
schedule: schedule:
- cron: '0 * * * *' - cron: '0 * * * *'
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs: jobs:
release-check: release-check:
permissions: write-all permissions: write-all
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -50,7 +50,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
should_build=$(python check_resource_updates.py) should_build=$(python check_resource_updates.py)
if [ "should_build" = "True" ]; then if [ "$should_build" = "True" ]; then
echo "SHOULD_BUILD=1" >> $GITHUB_OUTPUT echo "SHOULD_BUILD=1" >> $GITHUB_OUTPUT
else else
echo "SHOULD_BUILD=0" >> $GITHUB_OUTPUT echo "SHOULD_BUILD=0" >> $GITHUB_OUTPUT
@@ -64,6 +64,9 @@ jobs:
uses: ./.github/workflows/build-apk.yml uses: ./.github/workflows/build-apk.yml
if: ${{ needs.release-check.outputs.SHOULD_BUILD == 1 }} if: ${{ needs.release-check.outputs.SHOULD_BUILD == 1 }}
secrets: inherit secrets: inherit
concurrency:
group: Auto-Release-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
with: with:
TELEGRAM_NO_ROOT_UPLOAD: true TELEGRAM_NO_ROOT_UPLOAD: true
TELEGRAM_ROOT_UPLOAD: true TELEGRAM_ROOT_UPLOAD: true
+30
View File
@@ -6,6 +6,11 @@ env:
on: on:
workflow_call: workflow_call:
inputs: inputs:
GITHUB_UPLOAD:
description: "Upload to GitHub"
required: false
type: boolean
default: true
TELEGRAM_NO_ROOT_UPLOAD: TELEGRAM_NO_ROOT_UPLOAD:
description: "Upload Non Rooted APKs to Telegram" description: "Upload Non Rooted APKs to Telegram"
required: false required: false
@@ -16,6 +21,31 @@ on:
required: false required: false
type: boolean type: boolean
default: false 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: workflow_dispatch:
inputs: inputs:
GITHUB_UPLOAD: GITHUB_UPLOAD: