diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index faa3c5469a44..488d93ce7cee 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -20,23 +20,19 @@ jobs: # note: If you use only_check_changed_files, you do not want cancel-in-progress cancel-in-progress: true steps: - - name: checkout - uses: actions/checkout@v2 - - name: checkout-merge + - uses: actions/checkout@v2 + - uses: check-spelling/checkout-merge@v0.0.0 if: "contains(github.event_name, 'pull_request')" - uses: check-spelling/checkout-merge@v0.0.0 - - name: check-spelling + - uses: check-spelling/check-spelling@v0.0.20-alpha4 if: env.MERGE_FAILED != '1' id: spelling - uses: check-spelling/check-spelling@v0.0.20-alpha4 with: suppress_push_for_open_pull_request: 1 post_comment: 0 extra_dictionaries: cspell:aws/aws.txt - - name: store-comment + - uses: actions/upload-artifact@v2 if: failure() && steps.spelling.outputs.internal_state_directory - uses: actions/upload-artifact@v2 with: retention-days: 1 name: "check-spelling-comment-${{ github.run_id }}" @@ -52,18 +48,15 @@ jobs: pull-requests: write if: always() && needs.spelling.result == 'failure' && needs.spelling.outputs.internal_state_directory steps: - - name: checkout - uses: actions/checkout@v2 + - name: actions/checkout@v2 - name: set up run: | mkdir /tmp/data - - name: retrieve-comment - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v2 with: name: "check-spelling-comment-${{ github.run_id }}" path: /tmp/data - - name: comment - uses: check-spelling/check-spelling@v0.0.20-alpha4 + - uses: check-spelling/check-spelling@v0.0.20-alpha4 with: custom_task: comment internal_state_directory: /tmp/data