optimize(workflow): not run on bot commits

This commit is contained in:
源文雨
2024-07-03 16:39:41 +09:00
parent 6e7a261fa8
commit d8c24b6425
3 changed files with 8 additions and 5 deletions
+2 -4
View File
@@ -1,9 +1,7 @@
name: Calculate and Sync SHA256
on:
push:
branches:
- main
- dev
workflow_dispatch:
jobs:
checksum:
runs-on: ubuntu-latest
+3 -1
View File
@@ -7,9 +7,11 @@ on:
- dev
jobs:
push_format:
push-format:
runs-on: ubuntu-latest
if: github.actor != 'github-actions[bot]'
permissions:
contents: write
pull-requests: write
+3
View File
@@ -3,6 +3,9 @@ on: [ push, pull_request ]
jobs:
build:
runs-on: ${{ matrix.os }}
if: github.actor != 'github-actions[bot]'
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]