Skip to content

Commit dbc12c0

Browse files
add pull
#39
1 parent ee28862 commit dbc12c0

File tree

1 file changed

+34
-25
lines changed

1 file changed

+34
-25
lines changed

.github/workflows/build_pdf_manual.yaml

Lines changed: 34 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,43 @@ jobs:
3030
libfribidi-dev \
3131
pandoc
3232
33+
- name: Install R dependencies
34+
run: |
35+
R -e "install.packages('devtools')"
36+
R -e "install.packages('roxygen2')"
37+
R -e "install.packages('pkgdown')"
3338
34-
- name: Install R dependencies
35-
run: |
36-
R -e "install.packages('devtools')"
37-
R -e "install.packages('roxygen2')"
38-
R -e "install.packages('pkgdown')"
39-
40-
- name: Install R packages
41-
run: |
42-
source("preprocessing/install_imports.R")
43-
shell: Rscript {0}
39+
- name: Install R packages
40+
run: |
41+
source("preprocessing/install_imports.R")
42+
shell: Rscript {0}
4443

45-
- name: cleanup_reference_manual
46-
run: |
47-
source("preprocessing/cleanup_reference_manual.R")
48-
shell: Rscript {0}
44+
- name: cleanup_reference_manual
45+
run: |
46+
source("preprocessing/cleanup_reference_manual.R")
47+
shell: Rscript {0}
4948

50-
- name: Build and document package
51-
run: |
49+
- name: Build and document package
50+
run: |
5251
R -e "devtools::document()"
5352
R -e "pkgdown::build_site()"
5453
55-
- name: Commit and push changes
56-
if: success()
57-
uses: devops-infra/action-commit-push@master
58-
with:
59-
github_token: ${{ secrets.AUTOMATISATION }}
60-
commit_prefix: "[AUTO]"
61-
commit_message: "update fistools"
62-
debug: ${{ secrets.ACTIONS_STEP_DEBUG }}
63-
target_branch: ${{ github.head_ref || github.ref_name }}
54+
- name: Pull latest changes
55+
run: |
56+
git pull origin ${{ github.head_ref || github.ref_name }}
57+
shell: bash
58+
59+
- name: Merge changes
60+
run: |
61+
git merge --no-edit origin/${{ github.head_ref || github.ref_name }}
62+
shell: bash
63+
64+
- name: Commit and push changes
65+
if: success()
66+
uses: devops-infra/action-commit-push@master
67+
with:
68+
github_token: ${{ secrets.AUTOMATISATION }}
69+
commit_prefix: "[AUTO]"
70+
commit_message: "update fistools"
71+
debug: ${{ secrets.ACTIONS_STEP_DEBUG }}
72+
target_branch: ${{ github.head_ref || github.ref_name }}

0 commit comments

Comments
 (0)