-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 979 Bytes
/
ci-pr.yml
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
name: Continues Integration (PR)
on:
pull_request:
jobs:
examine-commit-message-ci-pr:
name: show commit message ci-pr
runs-on: ubuntu-20.04
steps:
- name: SCM Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- id: examine
name: Examine Commit Message in ci-pr
run: |
echo A=5 >> "$GITHUB_OUTPUT"
/usr/bin/git status
/usr/bin/git log -1 --pretty=format:"%b"
if ! (/usr/bin/git log -1 --pretty=format:"%b" | grep "\[run-slow-tests\]"); then
export RUN_SLOW_TESTS='-m "not slow"' >> "$GITHUB_OUTPUT"
fi
- name: Verify setting of env var in ci-pr
run: |
echo "OUTPUT 1 = ${{ steps.examine.outputs.A }}"
echo "OUTPUT 2 = ${{ steps.examine.outputs.RUN_SLOW_TESTS }}"
CI:
uses: ./.github/workflows/ci.yml
secrets: inherit
with:
commit-message: ${{ github.event.head_commit.message }}