mirror of
https://github.com/firstsun-dev/git-files-sync.git
synced 2026-07-22 17:20:30 +00:00
* 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>
22 lines
527 B
YAML
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 }}
|