Skip to content

Commit

Permalink
federate lint script workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sksat committed Jun 27, 2023
1 parent 039f1ba commit 2a80e18
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/check-coding-rule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: check coding rule
on:
workflow_call:
inputs:
federation_repos:
type: string
default: ""
c2a_dir:
type: string
default: '.'
Expand All @@ -25,6 +28,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: arkedge/gh-federation@add-extraheader-repos-input
with:
endpoint: ${{ secrets.GH_FEDERATION_ENDPOINT }}
repos: ${{ inputs.federation_repos }}

- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
submodules: recursive
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/check-encoding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: check encoding
on:
workflow_call:
inputs:
federation_repos:
type: string
default: ""
c2a_dir:
type: string
default: '.'
Expand All @@ -14,6 +17,11 @@ jobs:
check_encoding:
runs-on: ubuntu-latest
steps:
- uses: arkedge/gh-federation@add-extraheader-repos-input
with:
endpoint: ${{ secrets.GH_FEDERATION_ENDPOINT }}
repos: ${{ inputs.federation_repos }}

- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
submodules: 'recursive'
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
federation_repos:
type: string
default: ""
secrets:
GH_FEDERATION_ENDPOINT:
required: false

jobs:
build:
Expand All @@ -20,7 +17,11 @@ jobs:
check_coding_rule:
secrets: inherit
uses: ./.github/workflows/check-coding-rule.yml
with:
federation_repos: ${{ inputs.federation_repos }}

check_encoding:
secrets: inherit
uses: ./.github/workflows/check-encoding.yml
with:
federation_repos: ${{ inputs.federation_repos }}

0 comments on commit 2a80e18

Please sign in to comment.