Skip to content

Commit b194f05

Browse files
committed
Refactor issue creation for CLI version updates
- πŸ”„ Moved the GitHub issue creation step to follow the generation of the issue content file. - πŸ“ Updated the issue content to include a reference to the implementation PR. - βœ… Ensured the issue is assigned to Copilot when a new version is detected. -Priyanshu
1 parent 92aba03 commit b194f05

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

β€Ž.github/workflows/update-pac-cli-version.ymlβ€Ž

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,6 @@ jobs:
4242
echo "update_needed=false" >> $GITHUB_OUTPUT
4343
fi
4444
45-
# Instead of updating the file and creating a PR, create a GitHub issue and assign it to Copilot if a new version is available
46-
- name: Create GitHub issue to update CLI version and assign to Copilot
47-
if: steps.compare_versions.outputs.update_needed == 'true'
48-
uses: peter-evans/create-issue-from-file@v5
49-
with:
50-
title: "Update PowerApps CLI version to ${{ steps.get_latest_version.outputs.latest_version }}"
51-
content-filepath: .github/cli-update-issue-template.md
52-
labels: "automation,dependencies"
53-
assignees: "github-copilot[bot]"
54-
env:
55-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
5745
- name: Generate issue content file
5846
if: steps.compare_versions.outputs.update_needed == 'true'
5947
run: |
@@ -65,3 +53,14 @@ jobs:
6553
echo "Please update the CLI version in the repository." >> .github/cli-update-issue-template.md
6654
echo "" >> .github/cli-update-issue-template.md
6755
echo "For implementation reference, see PR #1236." >> .github/cli-update-issue-template.md
56+
57+
- name: Create GitHub issue to update CLI version and assign to Copilot
58+
if: steps.compare_versions.outputs.update_needed == 'true'
59+
uses: peter-evans/create-issue-from-file@v5
60+
with:
61+
title: "Update PowerApps CLI version to ${{ steps.get_latest_version.outputs.latest_version }}"
62+
content-filepath: .github/cli-update-issue-template.md
63+
labels: "automation,dependencies"
64+
assignees: "github-copilot[bot]"
65+
env:
66+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
Β (0)