From 81d7957c6f24e521b22ef9d860d2a859a1c2c972 Mon Sep 17 00:00:00 2001 From: John Boyes Date: Wed, 29 Jul 2020 10:16:57 +0700 Subject: [PATCH] Add yaml linting via reviewdog (#4) https://github.com/reviewdog/action-yamllint https://github.com/adrienverge/yamllint * Fix yaml linting errors --- .github/workflows/github_tag_and_release.yml | 7 ++++--- .github/workflows/reviewdog.yml | 13 ++++++++++++- action.yml | 3 ++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/github_tag_and_release.yml b/.github/workflows/github_tag_and_release.yml index 69a18b0..7012a25 100644 --- a/.github/workflows/github_tag_and_release.yml +++ b/.github/workflows/github_tag_and_release.yml @@ -1,8 +1,9 @@ +--- name: Tag -on: +on: # yamllint disable-line rule:truthy pull_request: - types: + types: - closed jobs: @@ -11,7 +12,7 @@ jobs: name: Tag semantic version runs-on: ubuntu-latest steps: - - name: Tag + - name: Tag uses: K-Phoen/semver-release-action@v1.3.1 with: release_branch: main diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index e4de67b..3748f57 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -1,6 +1,6 @@ --- name: reviewdog -on: +on: # yamllint disable-line rule:truthy push: jobs: @@ -16,3 +16,14 @@ jobs: with: github_token: ${{ secrets.github_token }} reporter: github-check + + yamllint: + name: runner / yamllint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: yamllint + uses: reviewdog/action-yamllint@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-check diff --git a/action.yml b/action.yml index 4353abb..c6ee8e7 100644 --- a/action.yml +++ b/action.yml @@ -1,7 +1,8 @@ +--- name: 'Container Action Template' description: 'Get started with Container actions' author: 'GitHub' -inputs: +inputs: myInput: description: 'Input to use' default: 'world'