Update casdoor_sso plugin #6
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate Plugin TOML | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - 'plugins/**' | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| - name: Get changed plugins | |
| id: changed | |
| run: | | |
| CHANGED_PLUGINS=$(git diff --name-only origin/${{ github.base_ref }}...HEAD | grep '^plugins/' | cut -d'/' -f2 | sort -u | tr '\n' ' ') | |
| echo "plugins=$CHANGED_PLUGINS" >> $GITHUB_OUTPUT | |
| echo "Changed plugins: $CHANGED_PLUGINS" | |
| - name: Setup Node.js | |
| if: steps.changed.outputs.plugins != '' | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Setup pnpm | |
| if: steps.changed.outputs.plugins != '' | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: Install dependencies | |
| if: steps.changed.outputs.plugins != '' | |
| run: pnpm install | |
| - name: Validate plugin.toml files | |
| if: steps.changed.outputs.plugins != '' | |
| run: pnpm validate ${{ steps.changed.outputs.plugins }} |