💚 Added check to avoid running GitHub Actions

This commit is contained in:
Nikhil Badyal
2022-08-25 09:40:32 +05:30
parent c7bdc2e750
commit 6c6abc3740
4 changed files with 6 additions and 8 deletions
+1 -2
View File
@@ -12,8 +12,7 @@
name: "CodeQL" name: "CodeQL"
on: on:
schedule: workflow_dispatch:
- cron: '0 0 * * *'
jobs: jobs:
analyze: analyze:
+2 -1
View File
@@ -13,6 +13,7 @@ permissions:
jobs: jobs:
auto-update: auto-update:
if: ${{ inputs.GH_TOKEN}}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@@ -32,7 +33,7 @@ jobs:
- name: Create Pull Request - name: Create Pull Request
uses: peter-evans/create-pull-request@v4 uses: peter-evans/create-pull-request@v4
with: with:
token: ${{ secrets.GH_TOKEN }} token: $GH_TOKEN
branch: update/pre-commit-autoupdate branch: update/pre-commit-autoupdate
title: ⬆️Update pre-commit hooks title: ⬆️Update pre-commit hooks
commit-message: ⬆️updated pre-commit hooks commit-message: ⬆️updated pre-commit hooks
+2 -5
View File
@@ -1,14 +1,11 @@
name: Telegram Upload name: Telegram Upload
on: on:
workflow_run:
workflows: [ "Build Revanced APK" ]
types:
- completed
workflow_dispatch: # to trigger manually workflow_dispatch: # to trigger manually
jobs: jobs:
tg-upload: tg-upload:
if: ${{ inputs.TELEGRAM_API_ID }}
timeout-minutes: 10 timeout-minutes: 10
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -16,7 +13,7 @@ jobs:
uses: nikhilbadyal/ghaction-telegram@main uses: nikhilbadyal/ghaction-telegram@main
with: with:
github_token: ${{ secrets.GH_TOKEN }} github_token: ${{ secrets.GH_TOKEN }}
telegram_api_id: ${{ secrets.TELEGRAM_API_ID }} telegram_api_id: $TG_API_ID
telegram_api_hash: ${{ secrets.TELEGRAM_API_HASH }} telegram_api_hash: ${{ secrets.TELEGRAM_API_HASH }}
telegram_bot_token: ${{ secrets.TELEGRAM_BOT_TOKEN }} telegram_bot_token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
telegram_chat_id: ${{ secrets.TELEGRAM_CHAT_ID }} telegram_chat_id: ${{ secrets.TELEGRAM_CHAT_ID }}
+1
View File
@@ -9,6 +9,7 @@ on:
jobs: jobs:
virustotal: virustotal:
if: ${{ inputs.VT_API_KEY }}
timeout-minutes: 5 timeout-minutes: 5
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: