Skip to content

Commit

Permalink
Refs #20434: Check method to get complete job name
Browse files Browse the repository at this point in the history
Signed-off-by: EduPonz <[email protected]>
  • Loading branch information
EduPonz committed Feb 14, 2024
1 parent 1b254dc commit 225462e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/overlay_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: pr_test_overlay

on:
workflow_dispatch:
pull_request:
branches:
- main

jobs:

dummy-overlay:
uses: ./.github/workflows/pr_test.yml
10 changes: 6 additions & 4 deletions .github/workflows/pr_test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: pr_test
description: Check Pull Request

on:
workflow_dispatch:
pull_request:
workflow_call:

jobs:

Expand All @@ -13,4 +11,8 @@ jobs:
- name: Do nothing yet
shell: bash
run: |
echo "ToDo"
echo "github.job: ${{ github.job }}"
echo "github.jobs[github.job]: ${{ github.jobs[github.job] }}"
echo "github.jobs[github.job].name: ${{ github.jobs[github.job].name }}"
echo "github.jobs[github.job].id: ${{ github.jobs[github.job].id }}"
echo "github.workflow-github.job: ${{ github.workflow }}-${{ github.job }}"

0 comments on commit 225462e

Please sign in to comment.