feat: update workflows triggers

This commit is contained in:
Ryan Yin
2024-03-13 17:26:53 +08:00
parent adcfb1ccb3
commit 8eae5e8f09
2 changed files with 23 additions and 4 deletions

View File

@@ -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:

View File

@@ -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/*"