Skip to content

use semver; simple perl-versions workflow #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/perl-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: List perl versions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we consider running that workflow on PR for sanity check?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking about that so far no idea (but I'm sure I will come with some)
so far I have (private) repo where I call workflows with manual dispatch.


on:
workflow_call:
inputs:
since-perl:
description: "List Perl versions since given version (including)."
type: string
required: true
default: "5.10"
outputs:
perl-versions:
value: ${{ jobs.perl-versions.outputs.perl-versions }}

jobs:
perl-versions:
runs-on: ubuntu-latest
name: List perl versions
outputs:
perl-versions: ${{ steps.action.outputs.perl-versions }}
steps:
- name: Perl versions action step
id: action
uses: perl-actions/perl-versions@main
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is using @main the right thing to do there?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we don't have tags yet

with:
since-perl: ${{ inputs.since-perl }}

33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,36 @@ jobs:
perl-versions: ${{ fromJson (needs.perl-versions.outputs.perl-versions }}

```

# Reusable workflow

There is also reusable workflow simplifying call of this action.

## Inputs

### since-perl

Forwarded to action.

## Outputs

### perl-version

String containing JSON array with list of Perl versions.

## Usage

```
jobs:
perl-versions:
uses: perl-actions/perl-versions/.github/workflows/perl-versions.yml@main
with:
since-perl: 5.10

test:
needs:
- perl-versions
strategy:
matrix:
perl-versions: ${{ fromJson (needs.perl-versions.outputs.perl-versions) }}
```
1 change: 1 addition & 0 deletions node_modules/.bin/semver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions node_modules/lru-cache/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

166 changes: 166 additions & 0 deletions node_modules/lru-cache/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading