-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (39 loc) · 1.29 KB
/
Copy pathcommon_end.yml
File metadata and controls
40 lines (39 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
on:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: "Checkout sasview.github.io Repository"
uses: actions/checkout@v5
with:
repository: sasview/sasview.github.io
ref: master
persist-credentials: false
fetch-depth: 0
- name: "Download archived markdown file"
uses: actions/download-artifact@v5
with:
run-id: ${{ github.event.workflow_run.id }}
- name: "Copy Markdown File Back Into Workspace"
run: |
mv -f ./SASVIEW_publications.md ./publications.md
rm -f SasView_linktitle.csl
- name: "Commit And Push Any Changes to Github"
run: |
if [[ -n $(git status --porcelain) ]]; then
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add ./publications.md
git commit -m "publications auto-update"
else
echo "No changes found. Skipping push."
fi
- name: Push changes
uses: ad-m/github-push-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository: sasview/sasview.github.io
branch: master