Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Support .yml extension #708

Merged
merged 2 commits into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ index 84bd67a..5d92e44 100644
with:
path: prime-numbers
key: ${{ runner.os }}-primes

actionlint:
- uses: suzuki-shunsuke/actionlint-workflow/.github/workflows/[email protected]
+ uses: suzuki-shunsuke/actionlint-workflow/.github/workflows/actionlint.yaml@b6a5f966d4504893b2aeb60cf2b0de8946e48504 # v0.5.0
Expand Down Expand Up @@ -135,7 +135,7 @@ We develop GitHub Actions to pin GitHub Actions and reusable workflows by pinact

## Configuration

pinact supports a configuration file `.pinact.yaml` or `.github/pinact.yaml`.
pinact supports a configuration file `.pinact.yaml`, `.github/pinact.yaml`, `.pinact.yml` or `.github/pinact.yml`.
You can also specify the configuration file path by the environment variable `PINACT_CONFIG` or command line option `-c`.

.pinact.yaml
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/run/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type IgnoreAction struct {
}

func getConfigPath(fs afero.Fs) (string, error) {
for _, path := range []string{".pinact.yaml", ".github/pinact.yaml"} {
for _, path := range []string{".pinact.yaml", ".github/pinact.yaml", ".pinact.yml", ".github/pinact.yml"} {
f, err := afero.Exists(fs, path)
if err != nil {
return "", fmt.Errorf("check if %s exists: %w", path, err)
Expand Down
Loading