@@ -11,18 +11,34 @@ jobs:
1111
1212 examples :
1313 runs-on : ubuntu-latest
14- if : " github.repository == 'lowlighter/metrics' "
14+ if : false
1515 steps :
16+ - name : Checkout repository
17+ uses : actions/checkout@v2
18+ with :
19+ fetch-depth : 0
20+ - name : Checkout examples
21+ run : git checkout examples
22+
1623<%- steps.split("\n").map(line => ` ${line}`).join("\n") % >
1724
25+ - name : Publish examples
26+ run : |
27+ set +e
28+ sudo mv /metrics_renders/* ./
29+ git config user.name github-actions[bot]
30+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
31+ git add --all
32+ git commit -m "chore: update examples"
33+ git push
34+
1835# ======================================================================================
1936# Markdown as png (for readme updates)
2037# ======================================================================================
2138
2239 examples-markdown :
2340 runs-on : ubuntu-latest
2441 if : false
25- # if: "github.repository == 'lowlighter/metrics'"
2642 container : ghcr.io/lowlighter/metrics:master
2743 needs : [examples]
2844 steps :
5672 runs-on : ubuntu-latest
5773 if : " github.repository == 'lowlighter/metrics'"
5874 steps :
75+ - name : Checkout repository
76+ uses : actions/checkout@v2
77+ with :
78+ fetch-depth : 0
79+ - name : Checkout examples
80+ run : git checkout examples
81+
5982 - name : Contributors
6083 if : ${{ success() || failure() }}
6184 uses : lowlighter/metrics@master
7295 config_display : large
7396 output_action : none
7497 delay : 120
75-
7698 - name : Sponsors
7799 if : ${{ success() || failure() }}
78100 uses : lowlighter/metrics@master
88110 config_display : large
89111 output_action : none
90112 delay : 120
91-
92113 - name : Licenses
93114 if : ${{ success() || failure() }}
94115 uses : lowlighter/metrics@master
@@ -105,3 +126,13 @@ jobs:
105126 plugins_errors_fatal : ${{ github.repository == 'lowlighter/lowlighter' }}
106127 output_action : none
107128 delay : 120
129+
130+ - name : Publish examples
131+ run : |
132+ set +e
133+ sudo mv /metrics_renders/* ./
134+ git config user.name github-actions[bot]
135+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
136+ git add --all
137+ git commit -m "chore: update examples"
138+ git push
0 commit comments