-
Notifications
You must be signed in to change notification settings - Fork 31
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 2eaa063
Showing
3 changed files
with
32 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,20 @@ | ||
name: Check if being used as reusable workflow | ||
inputs: | ||
current_workflow_file: | ||
type: string | ||
required: true | ||
description: The name of the workflow file this action is called from | ||
outputs: | ||
is_callee: ${{ steps.workflows_match == '1' }} | ||
type: boolean | ||
runs: | ||
using: "composite" | ||
steps: | ||
- id: workflows_match | ||
run: | | ||
set +e | ||
${{ github.workflow_ref }} | grep {{ inputs.current_workflow_file }} | ||
WORKFLOWS_MATCH=$? | ||
set -e | ||
echo "is_callee=$WORKFLOWS_MATCH" >> "$GITHUB_OUTPUT" | ||
echo $WORKFLOWS_MATCH |
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