1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-30 17:47:28 +01:00

Adds log message using new syntax (#1724)

* Adds log message using new syntax
This commit is contained in:
Amir Raminfar
2022-04-21 10:27:51 -07:00
committed by GitHub
parent 89e5bee174
commit abf0507307
4 changed files with 15 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
on:
push:
branches:
- "**"
- master
pull_request:
branches:
- master
@@ -41,7 +41,19 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Build images
run: docker-compose -f e2e/docker-compose.yml build
- name: Show GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Set commit message for push
if: github.event_name == 'push'
run: echo "GIT_LOG_MESSAGE=$(git log -1 --pretty=%B ${{env.GITHUB_SHA}})" >> $GITHUB_ENV
- name: Set commit message for pull request
if: github.event_name == 'pull_request'
run: echo "GIT_LOG_MESSAGE=$(git log -1 --pretty=%B ${{github.event.pull_request.head.sha}})" >> $GITHUB_ENV
- name: Run tests
run: docker-compose -f e2e/docker-compose.yml up --build --force-recreate --exit-code-from cypress