Skip to content

Commit

Permalink
fix syntax error in conditional (#281)
Browse files Browse the repository at this point in the history
* fix syntax error in conditional

* add a workflow that validates workflows
  • Loading branch information
jazzsequence authored May 24, 2024
1 parent 26cde90 commit 2a17282
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/validate-actions-workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Validate GitHub Actions workflows
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review

jobs:
validate-workflows:
name: Validate GitHub Actions workflows
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install action-validator with NPM
run: |
npm install -g @action-validator/core @action-validator/cli --save-dev
action-validator --help
- name: Validate workflows
run: |
# Loop over all the workflows in the .github/workflows directory.
for file in .github/workflows/*.yml; do
action-validator $file
done
2 changes: 1 addition & 1 deletion .github/workflows/wordpress-plugin-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
release:
# Do not run this job for prerelease versions.
if: ! github.event.release.prerelease
if: ${{ ! github.event.release.prerelease }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 2a17282

Please sign in to comment.