Skip to content

Commit 87b6866

Browse files
committed
Add temporary status check NO_JIRA
1 parent f42d4e2 commit 87b6866

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/status_check.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Run precommit checks on self
2+
on: pull_request
3+
jobs:
4+
log-github-event-goodies:
5+
name: "Log everything on GitHub Event"
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Logging
9+
run: |
10+
echo "${{toJSON(github.event)}}"
11+
precommit-check:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ ubuntu-latest, macos-latest, windows-latest ]
16+
steps:
17+
- uses: actions/checkout@v2
18+
with:
19+
ref: ${{ github.head_ref }}
20+
fetch-depth: 0
21+
- uses: actions/setup-python@v2
22+
with:
23+
python-version: "3.7"
24+
- name: Get the commit message
25+
run: |
26+
echo 'commit_message<<EOF' >> $GITHUB_ENV
27+
git log --format=%B -n 1 ${{ github.event.after }} >> $GITHUB_ENV
28+
echo 'EOF' >> $GITHUB_ENV
29+
- name: message1
30+
run: echo "The message is ${{ github.event.head_commit.message }}"
31+
- name: message2
32+
run: echo "The message is ${{ github.event.commits[0].message }}"
33+
- uses: ccdc-opensource/commit-hooks@update_status_check
34+
with:
35+
commitMessage: ${{ env.commit_message }}

0 commit comments

Comments
 (0)