🐛 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
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