Skip to content

Commit

Permalink
refactor: updated workflow to env files
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Brodjieski committed May 21, 2024
1 parent 573ae4c commit 5e34f59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/versioner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
CURRENT_BUILD=$(awk '/^build/ { print $NF }' VERSION.yaml)
if [[ -z $CURRENT_BUILD ]];then
echo "build: 1" >> VERSION.yaml
echo "::set-output name=NEWBUILD::1"
echo "NEWBUILD=1" >> $GITHUB_OUTPUT
else
NEW_BUILD=$((CURRENT_BUILD+1))
echo "$NEW_BUILD"
echo "::set-output name=NEWBUILD::$NEW_BUILD"
echo "NEWBUID=$NEW_BUILD" >> $GITHUB_OUTPUT
sed -i "s/^build.*/build: $NEW_BUILD/" VERSION.yaml
fi
- name: Push commit
Expand Down

0 comments on commit 5e34f59

Please sign in to comment.