Skip to content

Commit a924c45

Browse files
committed
work on permission to push
1 parent 3491a32 commit a924c45

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

.github/workflows/test_builddocsite.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ on:
2323

2424
permissions:
2525
contents: write
26+
pull-requests: write
2627
id-token: write
2728
pages: write
2829

@@ -40,12 +41,13 @@ jobs:
4041
# - name: pandoc setup
4142
# uses: pandoc/actions/setup@v1
4243

43-
# MD help tools
44-
- name: install debian chrome
45-
run: |
46-
set -ex
47-
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
48-
sudo apt install ./google-chrome-stable_current_amd64.deb
44+
# Code below removed for more rapid testing
45+
# # MD help tools
46+
# - name: install debian chrome
47+
# run: |
48+
# set -ex
49+
# wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
50+
# sudo apt install ./google-chrome-stable_current_amd64.deb
4951

5052
# - name: test newly-installed chrome
5153
# run: |
@@ -78,9 +80,10 @@ jobs:
7880
# name: MDhelp
7981
# retention-days: 1
8082

81-
- name: Get tutorials index from source code
82-
run: |
83-
curl -L https://github.com/AdvancedPhotonSource/GSAS-II/raw/master/GSASII/tutorialIndex.py -o scripts/tutorialIndex.py
83+
# Code below removed for more rapid testing
84+
# - name: Get tutorials index from source code
85+
# run: |
86+
# curl -L https://github.com/AdvancedPhotonSource/GSAS-II/raw/master/GSASII/tutorialIndex.py -o scripts/tutorialIndex.py
8487

8588
# Code below removed for more rapid testing
8689
# - name: convert tutorials
@@ -133,9 +136,6 @@ jobs:
133136
path: _gsas2
134137
ref: newhelp
135138
# token: ''
136-
# - name: Get GSAS-II
137-
# run: |
138-
# git clone --depth 1 https://github.com/AdvancedPhotonSource/GSAS-II.git _gsas2
139139
- name: move help into site
140140
run: |
141141
#rm -rf _gsas2/GSASII/help/assets/javascripts/
@@ -148,6 +148,11 @@ jobs:
148148
echo "After add"
149149
git status
150150
git commit -m"update help files"
151+
- name: push help into site
152+
run: |
153+
cd _gsas2
154+
git config user.name "github-actions[bot]"
155+
git config user.email "github-actions[bot]@users.noreply.github.com"
151156
git push
152157
153158
# before uploading, clean up

0 commit comments

Comments
 (0)