Update upload.yml

This commit is contained in:
manhduonghn 2023-08-20 17:22:07 +07:00 committed by GitHub
parent f030410e60
commit 10b65aad8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 8 deletions

View File

@ -20,18 +20,19 @@ jobs:
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Set up Environment Variables
- name: Delete Older Rules
run: python -m src delete
env:
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
- name: Upload New Rules
run: python -m src upload
env:
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
- name: Delete Older Rules
run: python -m src delete
- name: Upload New Rules
run: python -m src upload
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with: