Bump github.com/spidernet-io/spiderpool from 0.9.0-rc0 to 1.0.0-rc0 #596
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint Code Spell | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
push: | |
branches: | |
- main | |
- release-* | |
- github_pages | |
workflow_call: | |
inputs: | |
ref: | |
required: true | |
type: string | |
workflow_dispatch: | |
inputs: | |
ref: | |
description: 'sha, tag, branch' | |
required: true | |
default: main | |
jobs: | |
lint_spell: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Ref | |
id: get_ref | |
run: | | |
if ${{ inputs.ref != '' }} ; then | |
echo "trigger by workflow_call" | |
echo ::set-output name=ref::${{ inputs.ref }} | |
elif ${{ github.event_name == 'workflow_dispatch' }} ; then | |
echo "trigger by workflow_dispatch" | |
echo ::set-output name=ref::${{ github.event.inputs.ref }} | |
elif ${{ github.event_name == 'push' }} ; then | |
echo "trigger by push" | |
echo ::set-output name=ref::${{ github.sha }} | |
else | |
echo "trigger by ${{ github.event_name }}" | |
echo ::set-output name=ref::${{ github.event.pull_request.head.sha }} | |
fi | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ steps.get_ref.outputs.ref }} | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: 3.8 | |
architecture: x64 | |
- name: Run Code Lint | |
run: | | |
make lint-code-spell |