|
1 | | -name: Synchronize wiki |
2 | | - |
3 | | -on: [workflow_dispatch] |
4 | | - |
5 | | -jobs: |
6 | | - sync_wiki: |
7 | | - runs-on: ubuntu-20.04 |
8 | | - steps: |
9 | | - - name: Get wiki commit hash |
10 | | - uses: jannekem/run-python-script-action@v1.2 |
11 | | - with: |
12 | | - script: | |
13 | | - import requests |
14 | | - commit = requests.get("https://api.github.com/repos/x64dbg/wiki/commits/master", {"per_page": 1}).json() |
15 | | - print(commit["sha"]) |
16 | | - set_env("WIKI_SHA", commit["sha"]) |
17 | | -
|
18 | | - - name: Set commit status as pending |
19 | | - uses: myrotvorets/set-commit-status-action@1.1.5 |
20 | | - with: |
21 | | - token: ${{ secrets.WIKI_TOKEN }} |
22 | | - status: pending |
23 | | - repo: x64dbg/wiki |
24 | | - sha: ${{ env.WIKI_SHA }} |
25 | | - context: ${{ github.workflow }} |
26 | | - |
27 | | - - name: Synchronize wiki repository |
28 | | - run: | |
29 | | - git clone https://github.com/x64dbg/wiki wiki |
30 | | - cd wiki |
31 | | - git remote add wiki https://x64dbgbot:${{ secrets.WIKI_TOKEN }}@github.com/x64dbg/x64dbg.wiki.git |
32 | | - git push --force wiki master |
33 | | -
|
34 | | - - name: Set final commit status |
35 | | - uses: myrotvorets/set-commit-status-action@1.1.5 |
36 | | - if: ${{ always() }} |
37 | | - with: |
38 | | - token: ${{ secrets.WIKI_TOKEN }} |
39 | | - status: ${{ job.status }} |
40 | | - repo: x64dbg/wiki |
41 | | - sha: ${{ env.WIKI_SHA }} |
42 | | - context: ${{ github.workflow }} |
| 1 | +name: Synchronize wiki |
| 2 | + |
| 3 | +on: [ workflow_dispatch ] |
| 4 | + |
| 5 | +jobs: |
| 6 | + sync_wiki: |
| 7 | + runs-on: ubuntu-20.04 |
| 8 | + steps: |
| 9 | + - name: Get wiki commit hash |
| 10 | + uses: jannekem/run-python-script-action@088ec07b341540e5742f0426f5fdaf81950bac45 # pin@v1.2 |
| 11 | + with: |
| 12 | + script: | |
| 13 | + import requests |
| 14 | + commit = requests.get("https://api.github.com/repos/x64dbg/wiki/commits/master", {"per_page": 1}).json() |
| 15 | + print(commit["sha"]) |
| 16 | + set_env("WIKI_SHA", commit["sha"]) |
| 17 | +
|
| 18 | + - name: Set commit status as pending |
| 19 | + uses: myrotvorets/set-commit-status-action@74391422f441069685b0836133f6117f286debe5 # pin@1.1.5 |
| 20 | + with: |
| 21 | + token: ${{ secrets.WIKI_TOKEN }} |
| 22 | + status: pending |
| 23 | + repo: x64dbg/wiki |
| 24 | + sha: ${{ env.WIKI_SHA }} |
| 25 | + context: ${{ github.workflow }} |
| 26 | + |
| 27 | + - name: Synchronize wiki repository |
| 28 | + run: | |
| 29 | + git clone https://github.com/x64dbg/wiki wiki |
| 30 | + cd wiki |
| 31 | + git remote add wiki https://x64dbgbot:${{ secrets.WIKI_TOKEN }}@github.com/x64dbg/x64dbg.wiki.git |
| 32 | + git push --force wiki master |
| 33 | +
|
| 34 | + - name: Set final commit status |
| 35 | + uses: myrotvorets/set-commit-status-action@74391422f441069685b0836133f6117f286debe5 # pin@1.1.5 |
| 36 | + if: ${{ always() }} |
| 37 | + with: |
| 38 | + token: ${{ secrets.WIKI_TOKEN }} |
| 39 | + status: ${{ job.status }} |
| 40 | + repo: x64dbg/wiki |
| 41 | + sha: ${{ env.WIKI_SHA }} |
| 42 | + context: ${{ github.workflow }} |
0 commit comments