Skip to content

Commit

Permalink
Add python_version to action (#5)
Browse files Browse the repository at this point in the history
- Add python_version to input of action
- Directly use all_changed_files
  • Loading branch information
AlexanderDokuchaev authored Jan 5, 2025
1 parent b34e572 commit 104f006
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ inputs:
description: 'Version of package'
required: false
default: '0.9'
python_version:
description: 'Python version'
required: false
default: '3.10'

runs:
using: 'composite'
steps:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: ${{ inputs.python_version }}

- name: Install md-dead-link-check
run: pip install md-dead-link-check==${{ inputs.version }}
Expand All @@ -35,9 +40,7 @@ runs:
- name: (PR) Check links
if: github.event_name == 'pull_request'
env:
CHANGED_FILES: ${{ steps.changed-markdown-files.outputs.all_changed_files }}
run: md-dead-link-check --config=${{ inputs.config }} --hook ${CHANGED_FILES}
run: md-dead-link-check --config=${{ inputs.config }} --hook ${{ steps.changed-markdown-files.outputs.all_changed_files }}
shell: bash

- name: Check all links
Expand Down

0 comments on commit 104f006

Please sign in to comment.