Skip to content

Commit afe4815

Browse files
committed
Revert "Test build workflow"
This reverts commit 7b77390.
1 parent 7b77390 commit afe4815

30 files changed

+187
-2924
lines changed
Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,41 @@
11
name: Plugin Updater
22

33
on:
4+
schedule:
5+
- cron: "0 0 * * *"
46
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
167

178
jobs:
18-
build-webcomponents:
19-
name: Build web components
9+
Update:
2010
runs-on: ubuntu-latest
2111
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
2517
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
3638
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

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
loadSidebar: true,
2828
subMaxLevel: 4,
2929
search: 'auto',
30-
executeScript: true,
3130
auto2top: true,
3231
plugins: [
3332
function (hook, vm) {

plugins.md

Lines changed: 156 additions & 12 deletions
Large diffs are not rendered by default.

webcomponents/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)