Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertK66 authored Nov 29, 2023
1 parent fbf1fa9 commit 4888e4c
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,20 @@ jobs:
obcVersion2: ${{ steps.create_ver.outputs.MY_SWVERSION }}
steps:
- id: create_ver
name: Set Variables
run: |
pwd
ls -al
echo hello 1
ls
THE_SWVERSION=$(printf 'Ver_%.8s' "${{ github.sha }}" )
MY_SWVERSION=$(printf 'My_%.10s' "$GITHUB_REF_NAME" )
echo "THE_SWVERSION=$THE_SWVERSION" >> $GITHUB_ENV
echo "MY_SWVERSION=$MY_SWVERSION" >> $GITHUB_ENV
echo "THE_SWVERSION=$THE_SWVERSION" >> "$GITHUB_OUTPUT"
echo "MY_SWVERSION=$MY_SWVERSION" >> "$GITHUB_OUTPUT"
echo "$THE_SWVERSION"
echo "$MY_SWVERSION"
buildIt:
Expand All @@ -37,9 +40,11 @@ jobs:
steps:
- env:
OBC_VERSION: ${{needs.prepBuild.outputs.obcVersion}}
OBC_VERSION_2: ${{needs.prepBuild.outputs.obcVersion2}}
run: |
ls -al
pwd
ls
echo hello 2
echo "$OBC_VERSION"
pwd
ls -al
echo "$OBC_VERSION_2"

0 comments on commit 4888e4c

Please sign in to comment.