Skip to content

Commit 4496d06

Browse files
Remove duplicates and add GitHub action to lint collection-index.yml (#616)
* Remove duplicates and add GitHub action to lint collection-index.yml * Add write permission for pull-requests * Add config to ignore some rules * Pin versions * Fix version
1 parent 893f2bc commit 4496d06

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

.github/lint-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
3+
extends: default
4+
5+
6+
rules:
7+
line-length: disable
8+
trailing-spaces: disable
9+
document-start: disable
10+

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'Lint collection-index.yml'
2+
on:
3+
pull_request:
4+
paths:
5+
- _data/collection-index.yml
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
yamllint:
13+
name: 'Yamllint'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: 'Checkout'
17+
uses: actions/checkout@v6
18+
- name: 'Yamllint'
19+
uses: karancode/yamllint-github-action@@v2.1.1
20+
with:
21+
yamllint_file_or_dir: _data/collection-index.yml
22+
yamllint_strict: true
23+
yamllint_config_filepath: .github/lint-config.yaml
24+
yamllint_comment: true
25+
env:
26+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

_data/collection-index.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,6 @@
977977
contact: https://github.com/zetta/devcontainer-features/issues
978978
repository: https://github.com/zetta/devcontainer-features
979979
ociReference: ghcr.io/zetta/devcontainer-features
980-
ociReference: ghcr.io/davzucky/devcontainers-features-wolfi
981980
- name: devcontainer features for ubuntugis
982981
maintainer: Conner Shoop
983982
contact: https://github.com/connershoop/devcontainer-feature-ubuntugis/issues
@@ -988,7 +987,6 @@
988987
contact: https://github.com/The-Nefarious-Developer/devcontainer-templates/issues
989988
repository: https://github.com/The-Nefarious-Developer/devcontainer-templates
990989
ociReference: ghcr.io/the-nefarious-developer/devcontainer-templates
991-
ociReference: ghcr.io/davzucky/devcontainers-features-wolfi
992990
- name: Dev Container Features by ForWarD Software
993991
maintainer: ForWarD Software
994992
contact: https://github.com/forwardsoftware/devcontainer-features/issues

0 commit comments

Comments
 (0)