Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Sep 23, 2023
1 parent cdc10a0 commit ef3c4af
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Test linter-default
name: superlinter.test

concurrency:
group: ${{ github.workflow }}@${{ github.ref }}
Expand All @@ -12,5 +12,5 @@ on:

jobs:
calling:
uses: ./.github/workflows/linter-default.yml
uses: ./.github/workflows/superlinter.yml
...
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: Reusable Workflow - Super Linter - Default
name: Reusable Workflow - superlinter

on: # https://docs.github.com/en/actions/using-workflows/reusing-workflows
workflow_call:
on:
workflow_call: # https://docs.github.com/en/actions/using-workflows/reusing-workflows
inputs:
timezone:
description: 'The timezone, defaults to `Asia/Shanghai`'
Expand All @@ -19,7 +19,7 @@ env:
TZ: ${{ inputs.timezone }}

jobs:
linter-default:
superlinter:
runs-on: ${{ fromJSON(inputs.runs-on) }}

permissions:
Expand Down
19 changes: 7 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
# Yet another repository of reusable workflows
[![Static Badge](https://img.shields.io/badge/GitHub%20Actions-reusable%20workflows-blue?logo=github)
](https://docs.github.com/en/actions/using-workflows/reusing-workflows)
[![GitHub](https://img.shields.io/github/license/vbem/reusable?color=blue
)](LICENSE)
[![Static Badge](https://img.shields.io/badge/GitHub%20Actions-reusable%20workflows-blue?logo=github)](https://docs.github.com/en/actions/using-workflows/reusing-workflows)
[![GitHub](https://img.shields.io/github/license/vbem/reusable?color=blue)](LICENSE)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/vbem/reusable?label=Release&logo=github)](https://github.com/vbem/reusable/releases)
[![Test linter-default](https://github.com/vbem/reusable/actions/workflows/linter-default.test.yml/badge.svg)](https://github.com/vbem/reusable/actions/workflows/linter-default.test.yml)
[![superlinter.test](https://github.com/vbem/reusable/actions/workflows/superlinter.test.yml/badge.svg)](https://github.com/vbem/reusable/actions/workflows/superlinter.test.yml)

## Linters
A set of code-linter related [reusable workflows](https://docs.github.com/en/actions/using-workflows/reusing-workflows).

### `linter-default`
[`linter-default.yml`](.github/workflows/linter-default.yml) predefines some configurations for the well-known [*Super-Linter* action](https://github.com/marketplace/actions/super-linter). Create `.github/workflows/linter.yaml` in your repository:
## `superlinter`
[`superlinter.yml`](.github/workflows/superlinter.yml) predefines generic configurations for the well-known [*Super-Linter* action](https://github.com/marketplace/actions/super-linter). Create `.github/workflows/linter.yaml` in your repository:
```yaml
---
name: Super Linter
name: Linter

concurrency:
group: ${{ github.workflow }}@${{ github.ref }}
Expand All @@ -26,6 +21,6 @@ on:

jobs:
calling:
uses: vbem/reusable/.github/workflows/linter-default.yml@v1
uses: vbem/reusable/.github/workflows/superlinter.yml@v1
...
```

0 comments on commit ef3c4af

Please sign in to comment.