-
-
Notifications
You must be signed in to change notification settings - Fork 6
70 lines (67 loc) · 1.86 KB
/
git-commit-data-action.yml
File metadata and controls
70 lines (67 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: git-commit-data-action
on:
pull_request:
push:
branches:
- v1.x
permissions: read-all
jobs:
script-testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
# Need to download all history in order
# to make the tests work properly
fetch-depth: 0
- uses: docker://ffurrer/bats:latest
with:
args: "--recursive ."
os-testing:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v6
- uses: ./
- name: Output
run: |
echo "Get commit info"
echo " - ${{ env.GIT_COMMIT_SHA }}"
echo " - ${{ env.GIT_COMMIT_SHORT_SHA }}"
echo "Get author info"
echo " - ${{ env.GIT_COMMIT_AUTHOR }}"
echo " - ${{ env.GIT_COMMIT_AUTHOR_NAME }}"
echo " - ${{ env.GIT_COMMIT_AUTHOR_EMAIL }}"
echo "Get committer info"
echo " - ${{ env.GIT_COMMIT_COMMITTER }}"
echo " - ${{ env.GIT_COMMIT_COMMITTER_NAME }}"
echo " - ${{ env.GIT_COMMIT_COMMITTER_EMAIL }}"
echo "Get message info"
echo " - ${{ env.GIT_COMMIT_MESSAGE_SUBJECT }}"
echo " - ${{ env.GIT_COMMIT_MESSAGE_SUBJECT_SANITIZED }}"
echo " - ${{ env.GIT_COMMIT_MESSAGE_BODY }}"
release:
runs-on: ubuntu-latest
needs:
- script-testing
- os-testing
permissions:
contents: write
issues: write
id-token: write
packages: write
concurrency:
group: release-${{ github.ref }}
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Release That
uses: rlespinasse/release-that@v1
with:
github-token: ${{ secrets.GH_TOKEN }}