-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (40 loc) · 1.4 KB
/
generate-and-submit-documentation.yaml
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
41
42
43
44
45
name: Generate and submit documentation
on:
push:
branches:
- test/runner_scale_sets_for_ci
jobs:
generate-documentation:
runs-on: self-hosted-k3s
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- name: Generate documentation
run: make doc
# - name: Commit & Push changes
# run: |
# git clone https://github.com/Crypto-TII/claasp.git claasp-lib
# git config --global user.name 'Github'
# git config --global user.email ${{ secrets.DEPLOYMENT_REPOSITORY_EMAIL }}
# cd claasp-lib
# git checkout fix/generate-documentation-workflow-test-commit
# make doc
# git add .
# git commit -m "Update documentation"
# git push origin fix/generate-documentation-workflow-test-commit
# git merge fix/generate-documentation-workflow-test-commit fix/generate-documentation-workflow-test-merge
- name: Commit & Push changes
uses: actions-js/push@master
with:
branch: 'test/runner_scale_sets_for_ci'
github_token: ${{ github.token }}
message: "Update documentation"
- name: Update develop branch
uses: devmasx/merge-branch@master
with:
target_branch: 'fix/generate-documentation-workflow-test-merge'
type: now
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN_FINE_GRAINED }}