Skip to content

Commit

Permalink
change to use gh api, due to avoid retry
Browse files Browse the repository at this point in the history
  • Loading branch information
idubnori committed Apr 21, 2024
1 parent ec54b5f commit c206a77
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ runs:
- name: Install modules
shell: bash
run: pip install toml
- uses: actions/checkout@v4
continue-on-error: true # Continue even if repo is not existed
with:
repository: ${{ github.repository }}.wiki
sparse-checkout: |
${{ inputs.page-name }}
sparse-checkout-cone-mode: false
path: wiki_temp
- name: Download ${{ inputs.page-name }}
shell: bash
continue-on-error: true # Continue even if repo or file is not existed
run: |
mkdir -p wiki_temp
gh api repos/${{ github.repository }}.wiki/contents/${{ inputs.page-name }} --raw > wiki_temp/${{ inputs.page-name }}
- name: Load configuraions and set to environment
shell: python
run: |
Expand Down

0 comments on commit c206a77

Please sign in to comment.