You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by sl...@apache.org on 2025/05/19 19:56:45 UTC
(daffodil-infrastructure) branch main updated: Fix typo in release tag extraction
This is an automated email from the ASF dual-hosted git repository.
slawrence pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-infrastructure.git
The following commit(s) were added to refs/heads/main by this push:
new c96c906 Fix typo in release tag extraction
c96c906 is described below
commit c96c906ce1a4d1593c62a48c4baf8733e0d218fb
Author: Steve Lawrence <sl...@apache.org>
AuthorDate: Mon May 19 15:46:26 2025 -0400
Fix typo in release tag extraction
---
actions/release-candidate/dist/main/index.js | 4 ++--
actions/release-candidate/src/main.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/actions/release-candidate/dist/main/index.js b/actions/release-candidate/dist/main/index.js
index ca72967..c51d25a 100644
--- a/actions/release-candidate/dist/main/index.js
+++ b/actions/release-candidate/dist/main/index.js
@@ -31892,9 +31892,9 @@ async function run() {
// figure out the release version. This should follow the pattern
// 'v<VERSION>-rcX', where <VERSION> is the value from the VERSION file
- const gitTagPrefix = "refs/tags";
+ const gitTagPrefix = "refs/tags/";
let release_version = "";
- if (github.context.eventName == "push" && github.context.ref.startsWith(getTagPrefix)) {
+ if (github.context.eventName == "push" && github.context.ref.startsWith(gitTagPrefix)) {
// this was triggered by the push of a tag, the tag name will be the
// version used
release_version = github.context.ref.slice(gitTagPrefix.length);
diff --git a/actions/release-candidate/src/main.js b/actions/release-candidate/src/main.js
index 3ab7600..81ad245 100644
--- a/actions/release-candidate/src/main.js
+++ b/actions/release-candidate/src/main.js
@@ -63,9 +63,9 @@ async function run() {
// figure out the release version. This should follow the pattern
// 'v<VERSION>-rcX', where <VERSION> is the value from the VERSION file
- const gitTagPrefix = "refs/tags";
+ const gitTagPrefix = "refs/tags/";
let release_version = "";
- if (github.context.eventName == "push" && github.context.ref.startsWith(getTagPrefix)) {
+ if (github.context.eventName == "push" && github.context.ref.startsWith(gitTagPrefix)) {
// this was triggered by the push of a tag, the tag name will be the
// version used
release_version = github.context.ref.slice(gitTagPrefix.length);