mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 17:58:30 +02:00
Merge pull request #90 from ryan4yin/action-triggers
feat: update workflows triggers
This commit is contained in:
18
.github/workflows/flake_unittests.yml
vendored
18
.github/workflows/flake_unittests.yml
vendored
@@ -1,6 +1,22 @@
|
|||||||
name: Nix Flake Unit Tests
|
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:
|
jobs:
|
||||||
checks:
|
checks:
|
||||||
|
|||||||
9
.github/workflows/mirror_to_gitee.yml
vendored
9
.github/workflows/mirror_to_gitee.yml
vendored
@@ -1,7 +1,11 @@
|
|||||||
name: Mirror this repo to Gitee
|
name: Mirror this repo to Gitee
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: {}
|
push:
|
||||||
push: {}
|
branches:
|
||||||
|
- main
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
mirror:
|
mirror:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -26,4 +30,3 @@ jobs:
|
|||||||
export GIT_SSH_COMMAND="ssh -v -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no"
|
export GIT_SSH_COMMAND="ssh -v -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no"
|
||||||
git remote add mirror "$INPUT_TARGET_REPO_URL"
|
git remote add mirror "$INPUT_TARGET_REPO_URL"
|
||||||
git push --tags --force --prune mirror "refs/remotes/origin/*:refs/heads/*"
|
git push --tags --force --prune mirror "refs/remotes/origin/*:refs/heads/*"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user