Skip to content

Commit

Permalink
fix(github): Fix packaging
Browse files Browse the repository at this point in the history
When getting the BUILDID from the build log, be sure to take only one
match. Additional matches become extra arguments to "mv".

Also, fix deprecation warning around set-output.  Migrate to using
$GITHUB_OUTPUT as recommended.

Signed-off-by: Jake Garver <[email protected]>
  • Loading branch information
jgarver committed May 8, 2023
1 parent fda4834 commit ea98295
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ jobs:
run: |
mkdir package
# Extract details about the build (BUILDID, sha, etc.)
cat workspace/Build/BUILDLOG_Jetson.txt | grep BUILDID_STRING= |sed -e 's/.*BUILDID_STRING=\([^ ]*\)/\1/' > package/buildid
grep -m 1 BUILDID_STRING= workspace/Build/BUILDLOG_Jetson.txt | sed -e 's/.*BUILDID_STRING=\([^ ]*\)/\1/' > package/buildid
BUILDID=$(cat package/buildid)
echo "::set-output name=version::${BUILDID}"
echo "version=${BUILDID}"
echo "version=${BUILDID}" >> $GITHUB_OUTPUT
echo ${{ github.ref_name }} > package/ref_name
echo ${{ github.sha }} > package/sha
# Copy the images
Expand Down

0 comments on commit ea98295

Please sign in to comment.