mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
💚 Fixed Jobs not running
This commit is contained in:
@@ -13,24 +13,28 @@ 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
|
||||||
|
if: ${{ env.HAVE_GH_TOKEN == 'true' }}
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
|
if: ${{ env.HAVE_GH_TOKEN == 'true' }}
|
||||||
uses: actions/setup-python@v4.2.0
|
uses: actions/setup-python@v4.2.0
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Install pre-commit
|
- name: Install pre-commit
|
||||||
|
if: ${{ env.HAVE_GH_TOKEN == 'true' }}
|
||||||
run: pip install pre-commit
|
run: pip install pre-commit
|
||||||
|
|
||||||
- name: Updated Hooks
|
- name: Updated Hooks
|
||||||
|
if: ${{ env.HAVE_GH_TOKEN == 'true' }}
|
||||||
run: pre-commit autoupdate
|
run: pre-commit autoupdate
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
|
if: ${{ env.HAVE_GH_TOKEN == 'true' }}
|
||||||
uses: peter-evans/create-pull-request@v4
|
uses: peter-evans/create-pull-request@v4
|
||||||
with:
|
with:
|
||||||
token: $GH_TOKEN
|
token: $GH_TOKEN
|
||||||
@@ -39,3 +43,5 @@ jobs:
|
|||||||
commit-message: ⬆️updated pre-commit hooks
|
commit-message: ⬆️updated pre-commit hooks
|
||||||
body: ✨Update versions of tools in pre-commit configs to latest version
|
body: ✨Update versions of tools in pre-commit configs to latest version
|
||||||
labels: pre-commit✨
|
labels: pre-commit✨
|
||||||
|
env:
|
||||||
|
HAVE_GH_TOKEN: ${{ secrets.GH_TOKEN != '' }}
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ on:
|
|||||||
|
|
||||||
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:
|
||||||
- name: Upload to Telegram
|
- name: Upload to Telegram
|
||||||
|
if: ${{ env.HAVE_TELEGRAM_API_ID == 'true' }}
|
||||||
uses: nikhilbadyal/ghaction-telegram@main
|
uses: nikhilbadyal/ghaction-telegram@main
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GH_TOKEN }}
|
github_token: ${{ secrets.GH_TOKEN }}
|
||||||
@@ -17,3 +17,5 @@ jobs:
|
|||||||
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 }}
|
||||||
|
env:
|
||||||
|
HAVE_TELEGRAM_API_ID: ${{ secrets.TELEGRAM_API_ID != '' }}
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ 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:
|
||||||
- name: VirusTotal Scan
|
- name: VirusTotal Scan
|
||||||
|
if: ${{ env.HAVE_VT_API_KEY == 'true' }}
|
||||||
uses: nikhilbadyal/ghaction-virustotal@master
|
uses: nikhilbadyal/ghaction-virustotal@master
|
||||||
with:
|
with:
|
||||||
vt_api_key: ${{ secrets.VT_API_KEY }}
|
vt_api_key: ${{ secrets.VT_API_KEY }}
|
||||||
@@ -22,3 +22,5 @@ jobs:
|
|||||||
request_rate: 4
|
request_rate: 4
|
||||||
files: |
|
files: |
|
||||||
.apk$
|
.apk$
|
||||||
|
env:
|
||||||
|
HAVE_VT_API_KEY: ${{ secrets.VT_API_KEY != '' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user