File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Write manifest
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches : [main]
7+ paths :
8+ - " mapSpain_RMadrid/**"
9+ - " mapSpain_article/**"
10+ - " mapSpain_slides/**"
11+ - " .github/workflows/write-manifest.yaml"
12+
13+ permissions :
14+ contents : write
15+
16+ jobs :
17+ write-manifest :
18+ runs-on : ubuntu-latest
19+
20+ strategy :
21+ matrix :
22+ dir :
23+ - mapSpain_RMadrid
24+ - mapSpain_article
25+ - mapSpain_slides
26+
27+ steps :
28+ - uses : actions/checkout@v4
29+
30+ - uses : r-lib/actions/setup-r@v2
31+ with :
32+ use-public-rspm : true
33+
34+ - name : Install rsconnect
35+ run : |
36+ install.packages("rsconnect")
37+ shell : Rscript {0}
38+
39+ - name : Write manifest.json
40+ run : |
41+ rsconnect::writeManifest("${{ matrix.dir }}")
42+ shell : Rscript {0}
43+
44+ - name : Commit manifest
45+ uses : stefanzweifel/git-auto-commit-action@v5
46+ with :
47+ commit_message : " Update rsconnect manifests"
48+ file_pattern : " */manifest.json"
You can’t perform that action at this time.
0 commit comments