Skip to content

Commit

Permalink
Experiment with bash -c
Browse files Browse the repository at this point in the history
  • Loading branch information
sounddrill31 authored Aug 5, 2024
1 parent 64b63c3 commit c392260
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ jobs:
LUNCH="breakfast ${{ github.event.inputs.PRODUCT_NAME }} ${{ github.event.inputs.BUILD_TYPE }}"
fi
#copy from here
if [[ "${{ github.event.inputs.LOCAL_MANIFEST }}" =~ \.xml(/)?$ ]]; then
local_manifest_url="${{ github.event.inputs.LOCAL_MANIFEST }}"
export local_manifest_url="${local_manifest_url%/}" # remove trailing slash if it exists
LOCAL_MANIFEST="mkdir -p .repo/local_manifests && rm -rf .repo/local_manifests/* || true && curl -o .repo/local_manifests/local_manifest.xml ${local_manifest_url}"
else
else
export LOCAL_MANIFEST="git clone ${{ github.event.inputs.LOCAL_MANIFEST }} --depth 1 -b ${{github.event.inputs.LOCAL_MANIFEST_BRANCH}} .repo/local_manifests"
fi
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
echo "Displaying Local Manifests"
if [[ -z "${{ secrets.DISPLAY_FALSE }}" ]]; then
$LOCAL_MANIFEST
bash -c "$LOCAL_MANIFEST"
cat .repo/local_manifests/*.xml
else
echo "Displaying is disabled through secrets."
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/selfhosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ jobs:
echo "Displaying Local Manifests"
if [[ -z "${{ secrets.DISPLAY_FALSE }}" ]]; then
$LOCAL_MANIFEST
bash -c "$LOCAL_MANIFEST"
cat .repo/local_manifests/*.xml
else
echo "Displaying is disabled through secrets."
Expand Down

0 comments on commit c392260

Please sign in to comment.