File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1313 steps :
1414 # Run the action
1515 - name : Setup Flutter Version Management CLI
16- run : $GITHUB_ACTION_PATH/action.sh ${{ inputs.version }}
1716 shell : bash
17+ env :
18+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19+ run : $GITHUB_ACTION_PATH/action.sh ${{ inputs.version }}
Original file line number Diff line number Diff line change 5757
5858# Define the URL of the FVM binary
5959if [[ " $1 " == " latest" ]]; then
60- FVM_VERSION=$( curl -s https://api.github.com/repos/leoafarias/fvm/releases/latest | grep ' "tag_name":' | sed -E ' s/.*"([^"]+)".*/\1/' )
60+ FVM_VERSION=$( curl -s -H " Authorization: bearer $GITHUB_TOKEN " https://api.github.com/repos/leoafarias/fvm/releases/latest | grep ' "tag_name":' | sed -E ' s/.*"([^"]+)".*/\1/' )
6161 if [ -z " $FVM_VERSION " ]; then
6262 error " Failed to fetch latest FVM version."
6363 fi
You can’t perform that action at this time.
0 commit comments