diff --git a/.github/workflows/feishu-bot.yml b/.github/workflows/feishu-bot.yml new file mode 100644 index 0000000..78dec5f --- /dev/null +++ b/.github/workflows/feishu-bot.yml @@ -0,0 +1,40 @@ +name: Feishu synchronize + +on: + workflow_run: + workflows: [ nix-github-actions.yml ] + types: + - completed + discussion: + types: [created, edited, answered] + discussion_comment: + types: [created] + issues: + types: [opened, edited, milestoned, pinned, reopened, closed, assigned, unassigned] + issue_comment: + types: [created, edited] + milestone: + types: [opened, deleted] + project_card: + types: [created] + pull_request: + branches: ['master', 'main', 'feature/*', 'bugfix/*', 'feat-*', 'fix-*'] + types: [opened, reopened, review_requested, review_request_removed, ready_for_review, edited, assigned, unassigned] + pull_request_review: + types: [submitted, edited, dismissed] + pull_request_review_comment: + types: [created, edited, deleted] + pull_request_target: + types: [assigned, opened, synchronize, reopened] + push: + branches: ['master', 'main'] + +jobs: + send-event: + name: Webhook + runs-on: ubuntu-latest + steps: + - uses: Samuka007/feishu-bot-webhook-action@main + with: + webhook: ${{ secrets.FEISHU_BOT_WEBHOOK }} + signkey: ${{ secrets.FEISHU_BOT_SIGNKEY }} diff --git a/.github/workflows/nix-github-actions.yml b/.github/workflows/nix-github-actions.yml index bf3de13..b767765 100644 --- a/.github/workflows/nix-github-actions.yml +++ b/.github/workflows/nix-github-actions.yml @@ -2,7 +2,17 @@ name: Nix Flake actions on: pull_request: + paths: + - 'crates/**' + - 'Cargo.lock' + - 'flake.lock' + - '.github/workflows/nix-github-actions.yml' push: + paths: + - 'crates/**' + - 'Cargo.lock' + - 'flake.lock' + - '.github/workflows/nix-github-actions.yml' jobs: nix-matrix: