-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: explorer web: modify web-release to open a PR
- Loading branch information
Showing
1 changed file
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,11 +69,35 @@ jobs: | |
run: ls -t capa-explorer-web-v*.zip | tail -n +4 | xargs -r rm -- | ||
working-directory: web/explorer/releases | ||
|
||
- name: Commit and push release | ||
- name: Stage release files | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Capa Bot" | ||
git add -f web/explorer/releases/${{ env.RELEASE_NAME }}.zip web/explorer/releases/CHANGELOG.md | ||
git add -u web/explorer/releases/ | ||
git commit -m ":robot: explorer web: add release ${{ env.RELEASE_NAME }}" | ||
git push | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
title: "explorer web: add release v${{ github.event.inputs.version }}" | ||
body: | | ||
This PR adds a new capa Explorer Web release v${{ github.event.inputs.version }}. | ||
Release details: | ||
- Name: ${{ env.RELEASE_NAME }} | ||
- SHA256: ${{ env.RELEASE_SHA256 }} | ||
This release is generated by the [web release](https://github.com/mandiant/capa/actions/workflows/web-release.yml) workflow. | ||
- [x] No CHANGELOG update needed | ||
- [x] No new tests needed | ||
- [x] No documentation update needed | ||
commit-message: ":robot: explorer web: add release ${{ env.RELEASE_NAME }}" | ||
branch: release/web-v${{ github.event.inputs.version }} | ||
add-paths: web/explorer/releases/${{ env.RELEASE_NAME }}.zip | ||
base: master | ||
labels: webui | ||
delete-branch: true | ||
committer: Capa Bot <[email protected]> | ||
author: Capa Bot <[email protected]> |