-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed fatimage and ci not running on target branch
- Loading branch information
1 parent
921b565
commit 726dba2
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Check if being used as reusable workflow | ||
description: Determines if running as part of a reusable workflow by checking if the specified current workflow file is the same as the caller | ||
inputs: | ||
current_workflow_file: | ||
required: true | ||
description: The name of the workflow file this action is called from | ||
outputs: | ||
is_callee: | ||
value: ${{ steps.workflows_match.outputs.is_callee }} | ||
description: Returns 'true' (string) if called as a reusable workflow | ||
runs: | ||
using: "composite" | ||
steps: | ||
- id: workflows_match | ||
run: | | ||
if echo ${{ github.workflow_ref }} | grep ${{ inputs.current_workflow_file }}; then | ||
echo "is_callee='false'" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "is_callee='true'" >> "$GITHUB_OUTPUT" | ||
fi | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters