Skip to content

Commit

Permalink
Update fitgen.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
muktihari authored Dec 5, 2023
1 parent a11f43c commit d76bc86
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/fitgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ jobs:

- name: Check PR comment
id: check-comment
run: echo "trigger=${{ contains(github.event.comment.body, 'run fitgen') }}" >> $GITHUB_OUTPUT
run: |
echo "trigger=${{ contains(github.event.comment.body, 'run fitgen') }}" >> $GITHUB_OUTPUT
if [[ "$a" =~ ^run\ fitgen\ ([0-9]+\.[0-9]+)$ ]]; then
echo "sdkversion=${BASH_REMATCH[1]}" >> $GITHUB_OUTPUT
fi
- name: Checkout PR
if: steps.check-comment.outputs.trigger == 'true'
Expand All @@ -35,7 +39,7 @@ jobs:
export wd=$(pwd)
echo $wd
cd internal/cmd/fitgen
go run main.go -f Profile.xlsx -p ../../../ -b all --sdk-version 21.115 --verbose -y
go run main.go -f Profile.xlsx -p ../../../ -b all --sdk-version ${{ steps.check-comment.outputs.sdkversion }} --verbose -y
cd $wd
- name: Run Test
Expand All @@ -54,7 +58,7 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "Hikmatulloh Hari Mukti"
touch dummy-file-for-test
touch dummy-file-for-test-2
git add .
git commit -m "update: files generated from Profile.xlsx"
git push

0 comments on commit d76bc86

Please sign in to comment.