|
1 | 1 | name: Plugin Updater
|
2 | 2 |
|
3 | 3 | on:
|
| 4 | + schedule: |
| 5 | + - cron: "0 0 * * *" |
4 | 6 | workflow_dispatch:
|
5 |
| - push: |
6 |
| - branches: |
7 |
| - - main |
8 |
| - paths: |
9 |
| - - webcomponents/**.js |
10 |
| - - webcomponents/**.ts |
11 |
| - - webcomponents/**.json |
12 |
| - - webcomponents/**.svelte |
13 |
| - |
14 |
| -permissions: |
15 |
| - contents: write |
16 | 7 |
|
17 | 8 | jobs:
|
18 |
| - build-webcomponents: |
19 |
| - name: Build web components |
| 9 | + Update: |
20 | 10 | runs-on: ubuntu-latest
|
21 | 11 | steps:
|
22 |
| - - uses: actions/checkout@v4 |
23 |
| - - name: Setup Node |
24 |
| - uses: actions/setup-node@v4 |
| 12 | + - uses: actions/checkout@v2 |
| 13 | + with: |
| 14 | + token: ${{ secrets.UPDATER }} |
| 15 | + |
| 16 | + - uses: actions/setup-python@v2 |
25 | 17 | with:
|
26 |
| - node-version: 20 |
27 |
| - - name: Get version |
28 |
| - id: version |
29 |
| - run: | |
30 |
| - version=$(jq -r .version webcomponents/package.json) |
31 |
| - echo "version=$version" >> $GITHUB_OUTPUT |
32 |
| - - name: Build |
33 |
| - run: cd webcomponents && npm install && npm run build |
34 |
| - - name: Publish web components |
35 |
| - uses: softprops/action-gh-release@v2 |
| 18 | + python-version: "3.x" |
| 19 | + |
| 20 | + - name: Install Dependencies |
| 21 | + run: pip install -r ./ci/envs/requirements-plugin.txt |
| 22 | + |
| 23 | + - name: Update Plugin Informations |
| 24 | + run: python ./ci/src/plugin_updater.py |
| 25 | + env: |
| 26 | + GH_TOKEN: ${{ github.token }} |
| 27 | + REPOSITORY: "Flow-Launcher/Flow.Launcher.PluginsManifest" |
| 28 | + PLUGIN_JSON: "plugins.json" |
| 29 | + PLUGIN_MARKDOWN: "plugins.md" |
| 30 | + PLUGIN_NAME: "Name" |
| 31 | + PLUGIN_AUTHOR: "Author" |
| 32 | + PLUGIN_DESCRIPTION: "Description" |
| 33 | + PLUGIN_VERSION: "Version" |
| 34 | + PLUGIN_WEBSITE: "Website" |
| 35 | + |
| 36 | + - name: Commit & Push changes |
| 37 | + uses: stefanzweifel/git-auto-commit-action@v4 |
36 | 38 | with:
|
37 |
| - files: webcomponents/dist/flow-launcher-docs-web-components.js |
38 |
| - tag_name: webcomponents-v${{ steps.version.outputs.version }} |
| 39 | + commit_message: "DOC: update plugin list" |
| 40 | + push_options: --force |
| 41 | + branch: main |
0 commit comments