File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 22name : Update PowerApps CLI Version
33
44on :
5+ push :
6+ branches :
7+ - users/priyanshuag/pac
58 schedule :
69 - cron : ' 0 3 * * *' # Runs daily at 03:00 UTC
710 workflow_dispatch :
3033 current_version=$(grep -oP "const cliVersion = '\K[0-9.]+(?=')" gulpfile.mjs)
3134 echo "current_version=$current_version" >> $GITHUB_OUTPUT
3235
33- - name : Compare versions and update if needed
36+ - name : Compare versions
3437 id : compare_versions
3538 run : |
3639 if [ "${{ steps.get_latest_version.outputs.latest_version }}" != "${{ steps.get_current_version.outputs.current_version }}" ]; then
3942 echo "update_needed=false" >> $GITHUB_OUTPUT
4043 fi
4144
45+ - name : Update gulpfile.mjs with new CLI version
46+ if : steps.compare_versions.outputs.update_needed == 'true'
47+ run : |
48+ sed -i "s/const cliVersion = '[0-9.]*'/const cliVersion = '${{ steps.get_latest_version.outputs.latest_version }}'/" gulpfile.mjs
49+
4250 - name : Create Pull Request to update CLI version
4351 if : steps.compare_versions.outputs.update_needed == 'true'
4452 uses : peter-evans/create-pull-request@v6
5563 gulpfile.mjs
5664 env :
5765 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
58-
59- - name : Update gulpfile.mjs with new CLI version
60- if : steps.compare_versions.outputs.update_needed == 'true'
61- run : |
62- sed -i "s/const cliVersion = '[0-9.]*'/const cliVersion = '${{ steps.get_latest_version.outputs.latest_version }}'/" gulpfile.mjs
Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ async function snapshot() {
339339 }
340340}
341341
342- const cliVersion = '1.46.1 ' ;
342+ const cliVersion = '1.45.3 ' ;
343343
344344const recompile = gulp . series (
345345 clean ,
You can’t perform that action at this time.
0 commit comments