From 5e66045a21aa575b2712eee56e7ebdd90965260f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 25 May 2020 16:26:01 +0200 Subject: [PATCH] Try fixing release tags closes #4319 --- .github/actions/github-release/main.js | 2 +- .github/workflows/release.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/github-release/main.js b/.github/actions/github-release/main.js index 2c7eedbe29..b499cd0fd8 100644 --- a/.github/actions/github-release/main.js +++ b/.github/actions/github-release/main.js @@ -16,7 +16,7 @@ async function runOnce() { const slug = process.env.GITHUB_REPOSITORY; const owner = slug.split('/')[0]; const repo = slug.split('/')[1]; - const sha = process.env.GITHUB_SHA; + const sha = process.env.HEAD_SHA; core.info(`files: ${files}`); core.info(`name: ${name}`); diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 29ac895493..11c6f0ac3f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -88,6 +88,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - run: echo "::set-env name=HEAD_SHA::$(git rev-parse HEAD)" + - run: 'echo "HEAD_SHA: $HEAD_SHA"' + - uses: actions/download-artifact@v1 with: name: dist-macos-latest