Skip to content

Commit

Permalink
Creates pull request for zip files
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelton-gov committed Dec 5, 2023
1 parent 81dcaa5 commit fc0b6a8
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,24 @@ jobs:
cp -f ./${{ steps.metadata.outputs.archive }} ${{ github.workspace }}/releases/
cp -f ./${{ steps.metadata.outputs.archive-checksum }} ${{ github.workspace }}/releases/
- name: Commit Zip to Repo
- name: Create and Push New Branch
run: |
# Commit the changes to the repository
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
version="${{ steps.metadata.outputs.plugin-version }}"
branch_name="auto-release-${version}"
git checkout -b "$branch_name"
git add ${{ github.workspace }}/releases/${{ steps.metadata.outputs.archive }}
git add ${{ github.workspace }}/releases/${{ steps.metadata.outputs.archive-checksum }}
git commit -m "Add plugin zip file"
git push
git commit -m "Add plugin zip file - ${version}"
git push origin "$branch_name"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: "Add plugin zip file"
branch: "$branch_name"
base: main

- name: Create Github release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit fc0b6a8

Please sign in to comment.