Skip to content

Commit 75e5082

Browse files
authored
Merge pull request #2 from perl-actions/hpb/github-actions
use semver; simple perl-versions workflow
2 parents a5dbb08 + 4146554 commit 75e5082

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+4505
-5
lines changed

.github/workflows/perl-versions.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: List perl versions
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
since-perl:
7+
description: "List Perl versions since given version (including)."
8+
type: string
9+
required: true
10+
default: "5.10"
11+
outputs:
12+
perl-versions:
13+
value: ${{ jobs.perl-versions.outputs.perl-versions }}
14+
15+
jobs:
16+
perl-versions:
17+
runs-on: ubuntu-latest
18+
name: List perl versions
19+
outputs:
20+
perl-versions: ${{ steps.action.outputs.perl-versions }}
21+
steps:
22+
- name: Perl versions action step
23+
id: action
24+
uses: perl-actions/perl-versions@main
25+
with:
26+
since-perl: ${{ inputs.since-perl }}
27+

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,36 @@ jobs:
4747
perl-versions: ${{ fromJson (needs.perl-versions.outputs.perl-versions) }}
4848
4949
```
50+
51+
# Reusable workflow
52+
53+
There is also reusable workflow simplifying call of this action.
54+
55+
## Inputs
56+
57+
### since-perl
58+
59+
Forwarded to action.
60+
61+
## Outputs
62+
63+
### perl-version
64+
65+
String containing JSON array with list of Perl versions.
66+
67+
## Usage
68+
69+
```
70+
jobs:
71+
perl-versions:
72+
uses: perl-actions/perl-versions/.github/workflows/perl-versions.yml@main
73+
with:
74+
since-perl: 5.10
75+
76+
test:
77+
needs:
78+
- perl-versions
79+
strategy:
80+
matrix:
81+
perl-versions: ${{ fromJson (needs.perl-versions.outputs.perl-versions) }}
82+
```

node_modules/.bin/semver

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.package-lock.json

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/lru-cache/LICENSE

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/lru-cache/README.md

Lines changed: 166 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)