From 7e40d5c07b646480202624f199674cbec4f16e61 Mon Sep 17 00:00:00 2001 From: Michael Johansen Date: Fri, 27 Jun 2025 12:50:14 -0500 Subject: [PATCH] Set expected-version to release.tag_name for release events. Signed-off-by: Michael Johansen --- check-project-version/action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/check-project-version/action.yml b/check-project-version/action.yml index 8e05163..4b7eb64 100644 --- a/check-project-version/action.yml +++ b/check-project-version/action.yml @@ -6,10 +6,10 @@ inputs: default: ${{ github.workspace }} expected-version: description: > - The expected version. By default, this is `github.ref_name`, which is the - tag for a `release` event. If the version has a leading 'v', it will be - stripped. - default: ${{ github.ref_name }} + The expected version. By default, this is `github.event.release.tag_name` + for release events and `github.ref_name` otherwise. If the version has a + leading 'v', it will be stripped. + default: ${{ github.event_name == 'release' && github.event.release.tag_name || github.ref_name }} runs: using: composite steps: