Skip to content

Commit

Permalink
Work around actions/checkout@v3
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Nov 29, 2022
1 parent 0794a56 commit 407076c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/spelling/patterns.txt
Expand Up @@ -15,7 +15,7 @@ catching 'templatesz'
^\s*cspell:.*\.txt$
# githubusercontent
/[-a-z0-9]+\.githubusercontent\.com/[-a-zA-Z0-9?&=_\/.]*
\bgithub\.com/[^/]+/[^/]+/blob/[0-9a-f]+/
\bgithub\.com/[^/]+/[^/]+/(?:blob|commit)/[0-9a-f]+(?:/|$)

# Perl hex escaped regular expression patterns
\\x\{[0-9A-F]{3,}\}
Expand Down
20 changes: 19 additions & 1 deletion action.yml
Expand Up @@ -313,8 +313,26 @@ runs:
run: |
rsync --delete --exclude=.git -a alternate-engine/ "${{ github.action_path }}"
rm -rf alternate-engine/
- name: check-actions
id: check-actions
env:
spellchecker: ${{ github.action_path }}
GH_ACTION_REPOSITORY: ${{ github.action_repository || github.repository }}
GH_ACTION_REF: ${{ github.action_ref || github.ref_name }}
run:
stdbuf -i0 -o0 -e0 "${{ github.action_path }}/secpoll.sh"
shell: bash
- name: checkout
id: checkout-replacement
if: inputs.checkout && inputs.checkout != 'false' && !inputs.custom_task && env.replace_v3_actions_checkout
uses: check-spelling/actions-checkout@v3
with:
path: ${{ inputs.experimental_path }}
ssh-key: ${{ inputs.ssh_key }}
fetch-depth: ${{ !contains(inputs.check_commit_messages, 'commits') && '1' || '0' }}
token: ${{ inputs.GITHUB_TOKEN }}
- name: checkout
if: inputs.checkout && inputs.checkout != 'false' && !inputs.custom_task
if: inputs.checkout && inputs.checkout != 'false' && !inputs.custom_task && !env.replace_v3_actions_checkout
uses: actions/checkout@v3
with:
path: ${{ inputs.experimental_path }}
Expand Down

0 comments on commit 407076c

Please sign in to comment.