From a366be73ed10f189517eb50ef75fb729c08a7e76 Mon Sep 17 00:00:00 2001 From: Michael Richardson Date: Tue, 7 Nov 2023 08:25:11 -0800 Subject: [PATCH] add git ref fields to create release action --- .github/workflows/release-pull-request.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-pull-request.yml b/.github/workflows/release-pull-request.yml index c452c10..e056943 100644 --- a/.github/workflows/release-pull-request.yml +++ b/.github/workflows/release-pull-request.yml @@ -79,3 +79,5 @@ jobs: channel: 'Branches' release_number: ${{ steps.branch-name.outputs.current_branch }}.${{ github.run_id }} package_version: ${{ steps.branch-name.outputs.current_branch }}.${{ github.run_id }} + git_ref: ${{ (github.ref_type == 'tag' && github.event.repository.default_branch ) || (github.head_ref || github.ref) }} + git_commit: ${{ github.event.after || github.event.pull_request.head.sha }}