Fix where the action should live and setup ci #3
Workflow file for this run
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
# Copyright 2023 Chainguard, Inc. | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Action Lint | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
action-lint: | |
name: Action lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- id: get_yamls | |
run: | | |
yamls=$(find . -name "*.yaml" -iname '.chainguard/source.yaml') | |
echo "files="${yamls}"" >> $GITHUB_OUTPUT | |
- uses: reviewdog/action-actionlint@v1 | |
with: | |
actionlint_flags: ${{ steps.get_yamls.outputs.files }} |