Skip to content

Commit 537f736

Browse files
committed
feat: log commit
1 parent 54ffde0 commit 537f736

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/prerelease.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ jobs:
2727
name: Deploy ${{ matrix.locale }}
2828
steps:
2929
# Calculate if this matrix job should run based on PR labels
30+
#
31+
# This job will deploy if:
32+
# - The event is NOT a pull_request (e.g., workflow_dispatch)
33+
# - OR the PR has the label 'prerelease'
34+
# - OR the PR has the label 'prerelease:<locale>' matching the current matrix locale
3035
- name: Calculate should_deploy
3136
id: should_deploy
3237
shell: bash
@@ -47,6 +52,9 @@ jobs:
4752
uses: actions/checkout@v3
4853
with:
4954
fetch-depth: 1
55+
- name: Log checked out commit
56+
if: steps.should_deploy.outputs.should_deploy == 'true'
57+
run: git log -1 --oneline --decorate
5058
- name: Setup Tools
5159
if: steps.should_deploy.outputs.should_deploy == 'true'
5260
uses: ./.github/actions/setup

0 commit comments

Comments
 (0)