Updated find information.
This commit is contained in:
@@ -78,7 +78,7 @@ outputs:
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: "Build Unity Project"
|
- name: "Build Unity Project."
|
||||||
uses: act/unity/unity-project-cached@master
|
uses: act/unity/unity-project-cached@master
|
||||||
with:
|
with:
|
||||||
projectPath: ${{ inputs.projectPath }}
|
projectPath: ${{ inputs.projectPath }}
|
||||||
@@ -100,16 +100,28 @@ runs:
|
|||||||
- name: "Get product name."
|
- name: "Get product name."
|
||||||
id: get_product_name
|
id: get_product_name
|
||||||
uses: act/unity/unity-get-product-name@master
|
uses: act/unity/unity-get-product-name@master
|
||||||
- name: "Find Output Directory"
|
- name: "Configure find parameters."
|
||||||
|
id: configure_find
|
||||||
|
run: |
|
||||||
|
# Configure the pattern and type based on the platform. Android is case insensitive.
|
||||||
|
if [[ "${{ inputs.platform }},,}" = "android" ]]; then
|
||||||
|
echo "pattern=*.apk" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "type=f" >> "$GITHUB_OUTPUT"
|
||||||
|
else
|
||||||
|
echo "pattern=*" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "type=d" >> "$GITHUB_OUTPUT"
|
||||||
|
fi
|
||||||
|
shell: bash
|
||||||
|
- name: "Find Output Directory."
|
||||||
id: find_output_dir
|
id: find_output_dir
|
||||||
uses: act/common/utils/find-first@master
|
uses: act/common/utils/find-first@master
|
||||||
with:
|
with:
|
||||||
path: Build
|
path: Build
|
||||||
pattern: "*"
|
pattern: "${{ steps.configure_find.outputs.pattern }}"
|
||||||
type: d
|
type: "${{ steps.configure_find.outputs.type }}"
|
||||||
minDepth: 1
|
minDepth: 1
|
||||||
maxDepth: 1
|
maxDepth: 2
|
||||||
- name: "Upload Artifacts"
|
- name: "Upload Artifacts."
|
||||||
uses: https://github.com/ChristopherHX/gitea-upload-artifact@v4
|
uses: https://github.com/ChristopherHX/gitea-upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: "${{ steps.get_product_name.outputs.nameShort }}_${{ inputs.artifactSuffix }}"
|
name: "${{ steps.get_product_name.outputs.nameShort }}_${{ inputs.artifactSuffix }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user