File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 7979 echo "\\nDirectory structure:"
8080 tree || ls -R
8181
82+ - name : Commit package to source repo
83+ run : |
84+ # Create releases directory if it doesn't exist
85+ mkdir -p releases
86+
87+ # Copy the package file to releases directory
88+ PACKAGE_NAME="${{ steps.get_basic_info.outputs.plugin_name }}-${{ steps.get_basic_info.outputs.version }}.difypkg"
89+ cp "$PACKAGE_NAME" releases/
90+
91+ # Configure git
92+ git config user.name "GitHub Actions"
93+ git config user.email "[email protected] " 94+
95+ # Add and commit the package file
96+ git add releases/"$PACKAGE_NAME"
97+
98+ # Check if there are changes to commit
99+ if git diff --staged --quiet; then
100+ echo "No changes to commit"
101+ else
102+ git commit -m "add plugin package ${{ steps.get_basic_info.outputs.plugin_name }} v${{ steps.get_basic_info.outputs.version }}"
103+ git push origin main
104+ echo "Package committed to source repository"
105+ fi
106+
82107 - name : Checkout target repo
83108 uses : actions/checkout@v4
84109 with :
You can’t perform that action at this time.
0 commit comments