File tree Expand file tree Collapse file tree 2 files changed +67
-0
lines changed
.github-scheduled-workflows Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Delayed Plugin Installation"
2
+ on :
3
+ schedule :
4
+ - cron : ' */30 * * * *' # Run every 30 minutes
5
+
6
+ jobs :
7
+ install-plugins :
8
+ runs-on : ubuntu-latest
9
+ strategy :
10
+ matrix :
11
+ channel : ['main', 'stable']
12
+
13
+ steps :
14
+ - name : Install Micro editor from nightly
15
+ run : |
16
+ wget https://github.com/zyedidia/micro/releases/download/nightly/micro-nightly-linux64.tar.gz
17
+ tar xzf micro-nightly-linux64.tar.gz
18
+
19
+ - name : Configure Micro plugin channel
20
+ run : |
21
+ mkdir -p ~/.config/micro
22
+ echo '{
23
+ "pluginchannels": [
24
+ "https://raw.githubusercontent.com/Neko-Box-Coder/unofficial-plugin-channel/${{ matrix.channel }}/channel.json"
25
+ ]
26
+ }' > ~/.config/micro/settings.json
27
+
28
+ - name : Install plugins
29
+ run : |
30
+ ./micro-*/micro -plugin install acme
31
+ ./micro-*/micro -plugin install xonsh
32
+ ./micro-*/micro -plugin list
33
+
34
+ - name : Check plugin installation
35
+ run : |
36
+ if ! ./micro-*/micro -plugin list | grep -q "acme"; then
37
+ echo "Acme plugin installation failed for ${{ matrix.channel }} channel"
38
+ exit 1
39
+ fi
40
+ if ! ./micro-*/micro -plugin list | grep -q "xonsh"; then
41
+ echo "Xonsh plugin installation failed for ${{ matrix.channel }} channel"
42
+ exit 1
43
+ fi
44
+
45
+ - name : Remove scheduled job
46
+ if : always() # Run this step regardless of previous steps' success/failure
47
+ uses : cardinalby/unschedule-job-action@v1
48
+ with :
49
+ ghToken : ${{ secrets.WORKFLOWS_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Trigger Test Install Micro Plugins
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ workflow_dispatch : # Allow manual trigger
8
+
9
+ jobs :
10
+ schedule-install :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - name : Schedule delayed job
15
+ uses : cardinalby/schedule-job-action@v1
16
+ with :
17
+ ghToken : ${{ secrets.WORKFLOWS_TOKEN }}
18
+ templateYmlFile : ' .github-scheduled-workflows/install-plugins.yml'
You can’t perform that action at this time.
0 commit comments