Skip to content

Commit

Permalink
Event type, dump, conditional check
Browse files Browse the repository at this point in the history
  • Loading branch information
MukuFlash03 committed Sep 29, 2024
1 parent 6376e12 commit c8b8f32
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion .github/workflows/image_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,49 @@ on:
branches: [ master, cleanup-cicd ]

jobs:
build:
dump_contexts_to_log:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"

debug-info:
runs-on: ubuntu-latest
steps:
- name: Print commit info
run: |
echo "Commit author: ${{ github.event.commits[0].author.name }}"
echo "Head commit author: ${{ github.event.head_commit.author.name }}"
echo "Commit message: ${{ github.event.head_commit.message }}"
echo "Event name: ${{ github.event_name }}"
echo "Actor: ${{ github.actor }}"
echo "event name is:" ${{ github.event_name }}
echo "event type is:" ${{ github.event.action }}
build:
if: ${{ !contains(github.event.head_commit.author.name, 'Github Actions bot to update .env with latest tags') }}
uses: MukuFlash03/e-mission-server/.github/workflows/reusable_image_build_push.yml@cleanup-cicd
with:
repo: ${{ github.event.repository.name }}
Expand Down

0 comments on commit c8b8f32

Please sign in to comment.