Skip to content

Commit

Permalink
Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
judsonjames committed Jan 9, 2024
1 parent af87314 commit 3eaf336
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/orangepi-image-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,12 +294,10 @@ jobs:
with:
name: jar-${{ matrix.artifact-name }}
# TODO- replace with the arm-runner action and run this inside of the chroot. but this works for now.
- uses: pguyot/arm-runner-action@v2
name: Generate image
with:
commands: |
chmod +x scripts/generatePiImage.sh
./scripts/generatePiImage.sh ${{ matrix.image_url }} ${{ matrix.image_suffix }}
- name: Generate image
run: |
chmod +x scripts/generatePiImage.sh
./scripts/generatePiImage.sh ${{ matrix.image_url }} ${{ matrix.image_suffix }}
- uses: actions/upload-artifact@v4
name: Upload image
with:
Expand Down
3 changes: 2 additions & 1 deletion scripts/generatePiImage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,13 @@ echo "Image mounted! Copying jar..."
sudo mount $PARTITION $TMP


DIR_STACK=""
if ! command -v pushd > /dev/null 2>&1; then
echo "Overwriting pushd because it doesn't exist."
alias pushd='opi_pushd'
fi

if ! command -v popd > /dev/null 2>&1; then
echo "Overwriting popd because it doesn't exist."
alias popd='opi_popd'
fi

Expand Down

0 comments on commit 3eaf336

Please sign in to comment.