diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..3e2230a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: +- package-ecosystem: github-actions + directory: "/" + schedule: + interval: daily + time: "10:00" + open-pull-requests-limit: 10 diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index e6a725a..a7a3ff2 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -1,17 +1,90 @@ name: Spell checking -on: [pull_request_target, push, issue_comment, pull_request_review_comment] +on: + push: + branches: + - "**" + tags-ignore: + - "**" + pull_request_target: + issue_comment: + types: [created] jobs: - build: + spelling: name: Spell checking + permissions: + contents: read + pull-requests: read runs-on: ubuntu-latest + if: "contains(github.event_name, 'pull_request') || github.event_name == 'push'" steps: - - uses: actions/checkout@v2.0.0 + - name: checkout + uses: actions/checkout@v2 + - name: checkout-merge + if: "contains(github.event_name, 'pull_request')" + uses: check-spelling/checkout-merge@v0.0.0 + - name: check-spelling + if: env.MERGE_FAILED != '1' + id: spelling + uses: check-spelling/check-spelling@prerelease with: - ref: ${{ github.event.pull_request.head.sha }} - fetch-depth: 0 - - uses: jsoref/check-spelling@prerelease - env: - bucket: .github/actions - project: spell-check - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + config: .github/actions/spell-check + experimental_apply_changes_via_bot: 1 + suppress_push_for_open_pull_request: 1 + post_comment: 0 + - name: store-comment + if: failure() + uses: actions/upload-artifact@v2 + with: + name: "check-spelling-comment-${{ github.run_id }}" + path: | + ${{ steps.spelling.outputs.internal_state_directory }} + + comment: + name: Comment + runs-on: ubuntu-latest + needs: spelling + permissions: + contents: write + pull-requests: write + if: always() && needs.spelling.result == 'failure' + steps: + - name: checkout + uses: actions/checkout@v2 + - name: set up + run: | + mkdir /tmp/data + - name: retrieve-comment + uses: actions/download-artifact@v2 + with: + name: "check-spelling-comment-${{ github.run_id }}" + path: /tmp/data + - name: comment + uses: check-spelling/check-spelling@prerelease + with: + config: .github/actions/spell-check + experimental_apply_changes_via_bot: 1 + custom_task: comment + internal_state_directory: /tmp/data + debug: 1 + + update: + name: Update PR + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + if: ${{ + github.event_name == 'issue_comment' && + github.event.issue.pull_request && + contains(github.event.comment.body, '@check-spelling-bot apply') + }} + steps: + - name: checkout + uses: actions/checkout@v2 + - name: check-spelling + uses: check-spelling/check-spelling@prerelease + with: + config: .github/actions/spell-check + experimental_apply_changes_via_bot: 1 + debug: 1 diff --git a/README.md b/README.md index 5999e54..f533a70 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,4 @@ Disney * Windows Terminal Launch: [Terminal "Sizzle Video"](https://www.youtube.com/watch?v=8gw0rXPMMPE&list=PLEHMQNlPj-Jzh9DkNpqipDGCZZuOwrQwR&index=2&t=0s) -teh qiuck +teh quick