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 22, 2023
1 parent 4052c48 commit cf14b39
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 58 deletions.
52 changes: 11 additions & 41 deletions .github/workflows/liter-default.test.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,17 @@
---
name: Reusable Workflow - Super Linter - Default
name: Super Linter

on: # https://docs.github.com/en/actions/using-workflows/reusing-workflows
workflow_call:
inputs:
timezone:
description: 'The timezone, defaults to `Asia/Shanghai`'
type: string
required: false
default: 'Asia/Shanghai'
runs-on:
description: 'The jobs.<job_id>.runs-on, defaults to `["ubuntu-latest"]`'
type: string
required: false
default: '["ubuntu-latest"]'
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow
concurrency:
group: ${{ github.workflow }}@${{ github.ref }}
cancel-in-progress: true

env:
TZ: ${{ inputs.timezone }}
on:
push:
branches: [master, main]
workflow_dispatch:

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

permissions:
contents: read
packages: read
statuses: write

steps:
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Full git history is needed to get a proper list of changed files within `super-linter`

# https://github.com/marketplace/actions/super-linter
- uses: super-linter/super-linter/slim@v5
name: 🔎🔎🔎 Run ${{ github.action }}: ${{ github.action_status }}
env:
SUPPRESS_POSSUM: true
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
GITHUB_TOKEN: ${{ github.token }}
GITHUB_ACTIONS_COMMAND_ARGS: '-ignore colons -ignore line-length' # https://github.com/rhysd/actionlint/blob/main/docs/usage.md#super-linter
HADOLINT_FAILURE_THRESHOLD: error # https://github.com/hadolint/hadolint#configure
SHELLCHECK_OPTS: '--severity=warning' # https://github.com/koalaman/shellcheck#pre-commit
VALIDATE_BASH_EXEC: false
calling:
uses: ./.github/workflows/linter-default.yml
...
47 changes: 47 additions & 0 deletions .github/workflows/liter-default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: Reusable Workflow - Super Linter - Default

on: # https://docs.github.com/en/actions/using-workflows/reusing-workflows
workflow_call:
inputs:
timezone:
description: 'The timezone, defaults to `Asia/Shanghai`'
type: string
required: false
default: 'Asia/Shanghai'
runs-on:
description: 'The jobs.<job_id>.runs-on, defaults to `["ubuntu-latest"]`'
type: string
required: false
default: '["ubuntu-latest"]'

env:
TZ: ${{ inputs.timezone }}

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

permissions:
contents: read
packages: read
statuses: write

steps:
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Full git history is needed to get a proper list of changed files within `super-linter`

# https://github.com/marketplace/actions/super-linter
- uses: super-linter/super-linter/slim@v5
name: 🔎🔎🔎 Run ${{ github.action }}: ${{ github.action_status }}
env:
SUPPRESS_POSSUM: true
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
GITHUB_TOKEN: ${{ github.token }}
GITHUB_ACTIONS_COMMAND_ARGS: '-ignore colons -ignore line-length' # https://github.com/rhysd/actionlint/blob/main/docs/usage.md#super-linter
HADOLINT_FAILURE_THRESHOLD: error # https://github.com/hadolint/hadolint#configure
SHELLCHECK_OPTS: '--severity=warning' # https://github.com/koalaman/shellcheck#pre-commit
VALIDATE_BASH_EXEC: false
...
17 changes: 0 additions & 17 deletions .github/workflows/test:linter-default.yml

This file was deleted.

0 comments on commit cf14b39

Please sign in to comment.