From 7269b88cd7c91a279ef4b0aadc5414e9250d5a63 Mon Sep 17 00:00:00 2001 From: Edwin Sirko Date: Thu, 25 Jan 2024 16:04:05 -0500 Subject: [PATCH] v0.0.66: testing something dumb --- action.yml | 2 +- dist/index.js | 1 + src/main.ts | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 93251e0..dcdb9d6 100644 --- a/action.yml +++ b/action.yml @@ -24,7 +24,7 @@ runs: shell: bash # - run: node ./dist/index.js # shell: bash - - uses: ddivad195/publish-action-package/package-and-publish@v0.0.65 + - uses: ddivad195/publish-action-package/package-and-publish@v0.0.66 id: publish env: TOKEN: ${{ github.token }} diff --git a/dist/index.js b/dist/index.js index 4c9aec4..389e24a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -74754,6 +74754,7 @@ async function run() { } const releaseId = github.context.payload.release.id; const releaseTag = github.context.payload.release.tag_name; + console.log(`Release ID and tag? ${releaseId}, ${releaseTag}`); // Strip any leading 'v' from the tag in case the release format is e.g. 'v1.0.0' as recommended by GitHub docs // https://docs.github.com/en/actions/creating-actions/releasing-and-maintaining-actions const targetVersion = semver_1.default.parse(releaseTag.replace(/^v/, '')); diff --git a/src/main.ts b/src/main.ts index 11391c6..442b022 100644 --- a/src/main.ts +++ b/src/main.ts @@ -26,6 +26,8 @@ export async function run(): Promise { const releaseId: string = github.context.payload.release.id const releaseTag: string = github.context.payload.release.tag_name + console.log(`Release ID and tag? ${releaseId}, ${releaseTag}`) + // Strip any leading 'v' from the tag in case the release format is e.g. 'v1.0.0' as recommended by GitHub docs // https://docs.github.com/en/actions/creating-actions/releasing-and-maintaining-actions const targetVersion = semver.parse(releaseTag.replace(/^v/, ''))