Skip to content

Commit

Permalink
fixup! Clone hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Aug 13, 2024
1 parent 14e66b3 commit babf07a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions job-context/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
required: false
path:
type: string
default: ${{ github.action_path }}/repo
default: ""
required: true
outputs:
job-name:
Expand All @@ -24,7 +24,7 @@ runs:
if: ${{ inputs.job-name == '' }}
with:
ref: ${{ github.workflow_sha }}
path: ${{ inputs.path }}
path: ${{ inputs.path || format('{0}/repo', github.action_path) }}
- id: workflow
if: ${{ inputs.job-name == '' }}
shell: bash
Expand All @@ -38,7 +38,7 @@ runs:
job_name_template="$(job_key="${job_key}" yq '.jobs[env(job_key)].name' "${repo_path}/${workflow_path:?}")"
echo "job-name-template=${job_name_template:?}" | tee -a "$GITHUB_OUTPUT"
env:
repo_path: ${{ inputs.path }}
repo_path: ${{ inputs.path || format('{0}/repo', github.action_path) }}
workflow_ref: ${{ github.workflow_ref }}
job_key: ${{ github.job }} # User supplied job key cannot be used as we cannot properly render `matrix` expressions
- id: render
Expand Down

0 comments on commit babf07a

Please sign in to comment.