@@ -55,23 +55,47 @@ jobs:
5555 echo "changed=true" >> $GITHUB_OUTPUT
5656 fi
5757
58- - name : Commit and push changes
58+ - name : Create Pull Request
5959 if : steps.check_changes.outputs.changed == 'true'
60+ id : create_pr
61+ uses : peter-evans/create-pull-request@v6
62+ with :
63+ token : ${{ secrets.GITHUB_TOKEN }}
64+ commit-message : ' chore: Update Solutions Analyzer CSV files and documentation'
65+ branch : solutions-analyzer-update
66+ delete-branch : true
67+ title : ' chore: Update Solutions Analyzer CSV files and documentation'
68+ body : |
69+ ## Automated Solutions Analyzer Update
70+
71+ This PR contains automated updates to:
72+ - Solutions connector-to-tables mapping CSV
73+ - Solutions issues and exceptions report CSV
74+ - Connector documentation files
75+
76+ Generated by the Solutions Analyzer workflow.
77+
78+ **Triggered by:** ${{ github.event_name }}
79+ **Workflow run:** ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
80+ labels : automated, documentation
81+ add-paths : |
82+ Tools/Solutions Analyzer/solutions_connectors_tables_mapping.csv
83+ Tools/Solutions Analyzer/solutions_connectors_tables_issues_and_exceptions_report.csv
84+ Tools/Solutions Analyzer/connector-docs/
85+
86+ - name : Enable auto-merge
87+ if : steps.check_changes.outputs.changed == 'true' && steps.create_pr.outputs.pull-request-number != ''
6088 run : |
61- git config --local user.email "github-actions[bot]@users.noreply.github.com"
62- git config --local user.name "github-actions[bot]"
63- git add "Tools/Solutions Analyzer/solutions_connectors_tables_mapping.csv"
64- git add "Tools/Solutions Analyzer/solutions_connectors_tables_issues_and_exceptions_report.csv"
65- git add "Tools/Solutions Analyzer/connector-docs/"
66- git commit -m "chore: Update Solutions Analyzer CSV files and documentation [skip ci]"
67- git push
89+ gh pr merge ${{ steps.create_pr.outputs.pull-request-number }} --auto --squash
90+ env :
91+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6892
6993 - name : Create summary
7094 if : steps.check_changes.outputs.changed == 'true'
7195 run : |
72- echo "### Solutions Analyzer Updated :white_check_mark:" >> $GITHUB_STEP_SUMMARY
96+ echo "### Solutions Analyzer Pull Request Created :white_check_mark:" >> $GITHUB_STEP_SUMMARY
7397 echo "" >> $GITHUB_STEP_SUMMARY
74- echo "CSV files and documentation have been regenerated and committed ." >> $GITHUB_STEP_SUMMARY
98+ echo "A pull request has been created with updated CSV files and documentation ." >> $GITHUB_STEP_SUMMARY
7599 echo "" >> $GITHUB_STEP_SUMMARY
76100 echo "**Modified files:**" >> $GITHUB_STEP_SUMMARY
77101 echo "- Tools/Solutions Analyzer/solutions_connectors_tables_mapping.csv" >> $GITHUB_STEP_SUMMARY
0 commit comments