Skip to content

Commit

Permalink
chore: deep fork
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoodness committed Sep 19, 2024
1 parent 8209a05 commit 1315502
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions-ecosystem/action-release-label@v1
- uses: mgoodness/action-release-label@v1
id: release-label
if: ${{ startsWith(github.event.label.name, 'release/') }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions-ecosystem/action-release-label@v1
- uses: mgoodness/action-release-label@v1
id: release-label
if: ${{ steps.get-merged-pull-request.outputs.title != null }}
with:
Expand Down
7 changes: 0 additions & 7 deletions Dockerfile

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ Action Release Label is released under the [Apache License 2.0](./LICENSE).
<!-- badge links -->
[actions-workflow-lint]: https://github.com/actions-ecosystem/action-release-label/actions?query=workflow%3ALint
[actions-workflow-lint-badge]: https://img.shields.io/github/workflow/status/actions-ecosystem/action-release-label/Lint?label=Lint&style=for-the-badge&logo=github
[actions-workflow-lint]: https://github.com/mgoodness/action-release-label/actions?query=workflow%3ALint
[actions-workflow-lint-badge]: https://img.shields.io/github/actions/workflow/status/mgoodness/action-release-label/Lint?label=Lint&style=for-the-badge&logo=github
[release]: https://github.com/actions-ecosystem/action-release-label/releases
[release-badge]: https://img.shields.io/github/v/release/actions-ecosystem/action-release-label?style=for-the-badge&logo=github
[release]: https://github.com/mgoodness/action-release-label/releases
[release-badge]: https://img.shields.io/github/v/release/mgoodness/action-release-label?style=for-the-badge&logo=github
[license]: LICENSE
[license-badge]: https://img.shields.io/github/license/actions-ecosystem/action-add-labels?style=for-the-badge
[license-badge]: https://img.shields.io/github/license/mgoodness/action-add-labels?style=for-the-badge
20 changes: 12 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
name: Actions Ecosystem Action Release Label
name: Release Label Action
description: Output semver update level from a label.
author: Actions Ecosystem
author: Michael Goodness
branding:
icon: paperclip
color: blue
inputs:
label_prefix:
description: A prefix for labels that indicate semver level ({major, minor, patch}).
required: false
default: "release/"
labels:
description: The list of labels for the pull request. Separated with line breaks if there're multiple labels. Required for push events, not for pull_request events.
description: The list of labels for the pull request. Separated with line breaks if there are multiple labels. Required for push events; not for pull_request events.
required: false
outputs:
level:
description: A semver update level ({major, minor, patch}).
value: ${{ steps.release-label.outputs.level }}
runs:
using: docker
image: Dockerfile
branding:
icon: paperclip
color: blue
using: composite
steps:
- id: get-release-label
run: get-release-label.sh
shell: bash
4 changes: 2 additions & 2 deletions entrypoint.sh → get-release-label.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash

set -e

Expand Down Expand Up @@ -43,4 +43,4 @@ fi

level=${label#"${prefix}"} # e.g.) 'release/major' => 'major'

echo "::set-output name=level::${level}"
echo "level=${level}" >> ${GITHUB_OUTPUT}

0 comments on commit 1315502

Please sign in to comment.