Skip to content

Commit 6432fba

Browse files
committed
Test
1 parent 796ec87 commit 6432fba

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/update-pac-cli-version.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
name: Update PowerApps CLI Version
33

44
on:
5+
push:
6+
branches:
7+
- users/priyanshuag/pac
58
schedule:
69
- cron: '0 3 * * *' # Runs daily at 03:00 UTC
710
workflow_dispatch:
@@ -30,7 +33,7 @@ jobs:
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
@@ -39,6 +42,11 @@ jobs:
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
@@ -55,8 +63,3 @@ jobs:
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

gulpfile.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

344344
const recompile = gulp.series(
345345
clean,

0 commit comments

Comments
 (0)