-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
31 lines (31 loc) · 836 Bytes
/
action.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
---
name: 'Derive Ruby versions'
description: "Determine Ruby version testing matrix based on the gemspec's required_ruby_version field"
inputs:
filename:
description: 'Gemspec filename'
required: false
default: '*.gemspec'
repository:
description: 'Repository to checkout'
required: false
type: string
ref:
description: 'Git ref to checkout'
required: false
type: string
outputs:
versions:
description: "Ruby versions"
value: ${{ steps.script.outputs.ruby }}
runs:
using: "composite"
steps:
- uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
- id: script
# TODO spaces vs glob: compgen -G
run: ${{ github.action_path }}/extract_compatible_ruby_versions ${{ inputs.filename }}
shell: bash