firstsun-dev_git-files-sync/.github/workflows/ci.yml
ClaudiaFang 4574abc294
refactor: address SonarCloud issues and reduce code duplication (#20)
* ci: use shared obsidian plugin workflow and update obsidian version

* Add quality gate status badge to README

Added a quality gate status badge to the README.

* refactor: address SonarCloud issues and reduce code duplication

---------

Co-authored-by: ClaudiaFang <tianyao.firstsun@gmail.coim>
2026-04-27 01:20:40 +08:00

22 lines
527 B
YAML

name: CI/CD
permissions:
contents: write
issues: write
pull-requests: write
on:
push:
branches: [main, master, '**']
pull_request:
types: [opened, synchronize, reopened]
jobs:
CI:
uses: firstsun-dev/general-workflows/.github/workflows/obsidian-plugin-ci.yml@main
with:
plugin-id: "git-file-sync"
skip-sonar: ${{ secrets.SONAR_TOKEN == '' || vars.ENABLE_CI_SONAR != 'true' }}
secrets:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}