-
-
Notifications
You must be signed in to change notification settings - Fork 11
41 lines (35 loc) · 1018 Bytes
/
configlet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Configlet
on:
workflow_call:
inputs:
lint:
description: "Run configlet lint"
default: true
required: false
type: boolean
fmt:
description: "Run configlet fmt"
default: false
required: false
type: boolean
permissions:
contents: read
jobs:
configlet:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Fetch configlet
uses: exercism/github-actions/configlet-ci@main
# GITHUB_TOKEN is not set when we run the fetch script, because we're in
# a composite action. Set GH_TOKEN so that `gh release download` can
# make authenticated requests (it fails otherwise).
env:
GH_TOKEN: ${{ github.token }}
- name: Run configlet lint
run: configlet lint
if: ${{inputs.lint}}
- name: Run configlet fmt
run: configlet fmt
if: ${{inputs.fmt}}