-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (44 loc) · 1015 Bytes
/
example-linux.yaml
File metadata and controls
48 lines (44 loc) · 1015 Bytes
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
42
43
44
45
46
47
48
name: "Setup jq Example - Linux"
# you may need to change this block for your purposes.
permissions:
actions: none
attestations: none
checks: none
contents: none
deployments: none
id-token: none
issues: none
models: none
discussions: none
packages: none
pages: none
pull-requests: none
security-events: none
statuses: none
on:
workflow_dispatch:
inputs:
version:
type: string
required: false
description: 'Version of jq to install'
default: '1.7.1'
force:
type: boolean
required: false
description: 'Do not check for existing jq installation before continuing.'
default: false
jobs:
example:
runs-on: ubuntu-latest
steps:
- name: 'Setup jq'
uses: dcarbone/install-jq-action@v3
with:
version: '${{ inputs.version }}'
force: '${{ inputs.force }}'
- name: 'Check jq'
# language=sh
run: |
which jq
jq --version