diff --git a/.github/workflows/flake_unittests.yml b/.github/workflows/flake_unittests.yml index 92e36db6d..1c8ce8cad 100644 --- a/.github/workflows/flake_unittests.yml +++ b/.github/workflows/flake_unittests.yml @@ -1,6 +1,22 @@ name: Nix Flake Unit Tests -on: [push, pull_request, workflow_dispatch] +on: + push: + branches: + - main + paths-ignore: + - "scripts/**" + - "**.md" + - "**.nu" + - 'Justfile' + pull_request: + branches: + - main + paths-ignore: + - "scripts/**" + - "**.md" + - "**.nu" + - 'Justfile' jobs: checks: diff --git a/.github/workflows/mirror_to_gitee.yml b/.github/workflows/mirror_to_gitee.yml index 4fc1e8a71..9ce74a71e 100644 --- a/.github/workflows/mirror_to_gitee.yml +++ b/.github/workflows/mirror_to_gitee.yml @@ -1,7 +1,11 @@ name: Mirror this repo to Gitee on: - workflow_dispatch: {} - push: {} + push: + branches: + - main + tags: + - '*' + jobs: mirror: runs-on: ubuntu-latest @@ -26,4 +30,3 @@ jobs: export GIT_SSH_COMMAND="ssh -v -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" git remote add mirror "$INPUT_TARGET_REPO_URL" git push --tags --force --prune mirror "refs/remotes/origin/*:refs/heads/*" -