From d8cd3257e05dc4a3d0061b5320ef5efd0b45d840 Mon Sep 17 00:00:00 2001 From: Stephan Date: Fri, 18 Mar 2022 18:08:47 +0100 Subject: [PATCH] exp --- .github/workflows/publish-release.js | 4 +++- .github/workflows/publish-release.yml | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-release.js b/.github/workflows/publish-release.js index a11a182..cffea76 100644 --- a/.github/workflows/publish-release.js +++ b/.github/workflows/publish-release.js @@ -49,6 +49,8 @@ module.exports = /*async*/ ({github, context, core}) => { repo: context.repo.repo, tag: tag }) + console.log('RELEASE') + console.log(release) if (release === null) { core.setFailed(`Could not find a GitHub release for tag '${tag}'.`) return @@ -63,7 +65,7 @@ module.exports = /*async*/ ({github, context, core}) => { core.setFailed(`Could not find a GitHub release for tag '${tag}'.`) return } - console.log(`Found yet-unpublished GitHub Release for tag '${tag}'.`) + console.log(`Found yet-unpublished GitHub release for tag '${tag}'.`) // tag must not exist const tagRefs = await restapi.git.listMatchingRefs({ diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index a58f477..8a38873 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -34,9 +34,6 @@ jobs: const scriptf = require('./.github/workflows/publish-release.js') const script = scriptf({github, context, core}) await script.validateRelease() - // rest should be in a different step - // await script.publishRelease() - // await script.closeMilestone() - name: Finalize GitHub release and milestone if: github.event.inputs.dryrun == false