Skip to content

Commit 4fc050e

Browse files
author
Guy Davenport
committed
Just do generate on this action
1 parent 51ad41e commit 4fc050e

File tree

1 file changed

+2
-41
lines changed

1 file changed

+2
-41
lines changed

.github/workflows/generate.yml

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
echo "COMMIT_MESSAGE=$(git log -1 --pretty=format:'%s')" >> "$GITHUB_ENV"
2121
- id: skip
2222
name: Skip if automated push
23-
if: contains(env.COMMIT_MESSAGE, 'Apply automatic changes')
23+
if: startsWith(env.COMMIT_MESSAGE, 'GitHub Action')
2424
run: |
2525
echo "Automated commit detected - skipping job"
2626
echo "skip_job=true" >> "$GITHUB_OUTPUT"
@@ -67,48 +67,9 @@ jobs:
6767
working-directory: ./main/generator
6868
run: ./gradlew generateR
6969

70-
- name: Install system dependencies
71-
run: |
72-
sudo apt-get update
73-
sudo apt-get install -y build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev
74-
75-
- name: Set up R
76-
uses: r-lib/actions/setup-r@v2
77-
78-
- name: Install dependencies
79-
working-directory: main/pkg
80-
run: |
81-
Rscript -e "install.packages(c('usethis', 'pkgdown', 'rcmdcheck', 'rversions', 'urlchecker', 'devtools'), repos = 'https://cloud.r-project.org')"
82-
Rscript -e "devtools::install_deps(dependencies = TRUE)"
83-
84-
- name: Document R package
85-
working-directory: main/pkg
86-
run: Rscript -e "devtools::document()"
87-
88-
- uses: r-lib/actions/setup-pandoc@v2
89-
90-
- uses: r-lib/actions/setup-r-dependencies@v2
91-
with:
92-
extra-packages: any::pkgdown, local::.
93-
needs: website
94-
working-directory: main/pkg
95-
96-
- name: Build site
97-
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
98-
shell: Rscript {0}
99-
working-directory: main/pkg
10070
- if: needs.check.outputs.skip_commit == 'false'
10171
uses: stefanzweifel/git-auto-commit-action@v5
10272
with:
10373
repository: main
104-
commit_message: Apply automatic changes
74+
commit_message: GitHub Action - Generate R files from JSON Schema
10575
file_pattern: main/**
106-
- name: Deploy to GitHub pages 🚀
107-
if: github.event_name != 'pull_request'
108-
uses: JamesIves/github-pages-deploy-action@v4.5.0
109-
with:
110-
clean: false
111-
branch: gh-pages
112-
folder: pkg/docs
113-
114-

0 commit comments

Comments
 (0)