Skip to content

ci(test): run only when action.yml or workflow gets updated #14

ci(test): run only when action.yml or workflow gets updated

ci(test): run only when action.yml or workflow gets updated #14

Workflow file for this run

name: Test
on:
push:
branches: [main]
paths:
- .github/workflows/test.yml
- action.yml
pull_request:
branches: [main]
paths:
- .github/workflows/test.yml
- action.yml
schedule:
- cron: '30 05 * * 0'
jobs:
test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: ./
- name: Run a one-line script
run: cat /etc/os-release && uname -a
shell: wsl-run {0}
- name: Run a multi-line script
run: |
ls -alh
cat ${0} # prints the script itself
echo "Hello, world!"
echo "Bye, world!"
shell: wsl-run {0}