Skip to content

Commit

Permalink
ci: fix yamllint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sileht committed Aug 6, 2024
1 parent da31f8c commit 7c406ce
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

concurrency:
# yamllint disable-line rule:line-length
group: "${{ github.workflow }}-${{ github.head_ref || github.run_id }}"
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -55,4 +55,3 @@ jobs:
token: fake-valid-token
report_paths: zfixtures/junit_example.xml
mergify_api_server: http://localhost:1080

22 changes: 22 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
extends: default
ignore: |
.git
docs/node_modules
zfixtures
.venv
rules:
document-start: disable
truthy: disable
comments:
level: error
# Buggy checks:
# https://github.com/adrienverge/yamllint/issues/375
# https://github.com/adrienverge/yamllint/issues/141
# https://github.com/adrienverge/yamllint/issues/384
comments-indentation: disable
line-length:
max: 110
quoted-strings:
quote-type: double
required: only-when-needed
allow-quoted-quotes: true
19 changes: 9 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: 'gha-ci-issues'
description: 'Upload JUnit XML report to Mergify CI Issues'
author: 'Mergify'
name: gha-ci-issues
description: Upload JUnit XML report to Mergify CI Issues
author: Mergify
branding:
icon: 'at-sign'
color: 'blue'
icon: at-sign
color: blue
inputs:
token:
required: true
description: 'CI Issues Application Key'
description: CI Issues Application Key
report_paths:
required: true
description: 'Paths of the files to upload'
description: Paths of the files to upload
mergify_api_server:
required: false
description: 'URL of the Mergify API'
description: URL of the Mergify API
default: https://api.mergify.com/v1
name:
description: name of the current workflow job
runs:
using: 'composite'
using: composite
steps:
- shell: bash
env:
Expand Down Expand Up @@ -48,4 +48,3 @@ runs:
with:
name: ci-issues-junit-report
path: ${{ inputs.report_paths }}

0 comments on commit 7c406ce

Please sign in to comment.