Skip to content

Commit b0cdc96

Browse files
committed
test: test fetching previous commit
1 parent 087fec7 commit b0cdc96

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

+13
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
push:
88
branches:
99
- main
10+
- test-fetch
1011

1112
permissions:
1213
contents: read
@@ -57,6 +58,18 @@ jobs:
5758
id: checkout
5859
uses: actions/checkout@v4
5960

61+
- name: Show Commit Info (Pull Request)
62+
if: github.event_name == 'pull_request'
63+
run:
64+
echo "HEAD Commit SHA ${{ github.event.pull_request.head.sha}} $(git
65+
show -s --format=%s)"
66+
67+
- name: Show Commit Info (Push)
68+
if: github.event_name == 'push'
69+
run:
70+
echo "HEAD Commit SHA ${{ github.sha }} ${{
71+
github.event.head_commit.message }}"
72+
6073
- name: Test Local Action And Capture Output
6174
id: test-action
6275
uses: ./

0 commit comments

Comments
 (0)