Merge pull request #440 from vasylenko/patch-1 #43
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 of the workflow | |
name: ShellCheck WireGuard Manager | |
# Define the events that trigger the workflow | |
on: | |
# Trigger the workflow on push events | |
push: | |
# Only for .sh files | |
paths: | |
- "**.sh" | |
# Trigger the workflow on pull request events | |
pull_request: | |
# Only for .sh files | |
paths: | |
- "**.sh" | |
# Allow manual triggering of the workflow | |
workflow_dispatch: | |
# Define the jobs in the workflow | |
jobs: | |
# Define a job named "shellcheck" | |
shellcheck: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Define the steps in the job | |
steps: | |
# Check out the repository code | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 # Updated to use the latest version | |
# Run shellcheck on the shell scripts | |
- name: Run ShellCheck | |
uses: ludeeus/action-shellcheck@2.0.0 # Updated to use a specific version instead of master |