Skip to content
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

Switch to composite action #24

Merged
merged 1 commit into from
Mar 22, 2023
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
24 changes: 21 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ inputs:
have the appropriate version in it. By default, this action will fail if the version tagged is not found in the
changelog file.
required: false
default: false
default: 'false'
title:
description: Format of title (variables `$tag`, `$version`, `$prefix`, and any string)
required: false
Expand Down Expand Up @@ -60,10 +60,28 @@ outputs:
computed-prefix:
description: >
The computed prefix, including '-' and 'v' if found.
value: ${{ steps.main.outputs.computed-prefix }}
version:
description:
The version number extracted from the tag. The tag name is a concatenation of computed-prefix
and version.
value: ${{ steps.main.outputs.version }}

# Note:
# - inputs.* should be manually mapped to INPUT_* due to https://github.com/actions/runner/issues/665
# - Use GITHUB_*/RUNNER_* instead of github.*/runner.* due to https://github.com/actions/runner/issues/2185
runs:
using: node16
main: main.js
using: composite
steps:
- id: main
run: bash --noprofile --norc "${GITHUB_ACTION_PATH:?}/main.sh"
shell: bash
env:
INPUT_CHANGELOG: ${{ inputs.changelog }}
INPUT_ALLOW_MISSING_CHANGELOG: ${{ inputs.allow_missing_changelog }}
INPUT_TITLE: ${{ inputs.title }}
INPUT_DRAFT: ${{ inputs.draft }}
INPUT_BRANCH: ${{ inputs.branch }}
INPUT_PREFIX: ${{ inputs.prefix }}
INPUT_TOKEN: ${{ inputs.token }}
INPUT_REF: ${{ inputs.ref }}
28 changes: 0 additions & 28 deletions main.js

This file was deleted.