ci: add capa release link to capa-rules tag

GitHub displays the commit's message of the tag if no description is
given, which is ugly. Use annotated tags which include a message. Use
the release link as message, as this is useful information.
This commit is contained in:
Ana Maria Martinez Gomez
2021-04-07 18:35:23 +02:00
parent 407ecab162
commit 9d79baa96a
2 changed files with 8 additions and 1 deletions

View File

@@ -15,7 +15,12 @@ jobs:
repository: fireeye/capa-rules
token: ${{ secrets.CAPA_TOKEN }}
- name: Tag capa-rules
run: git tag ${{ github.event.release.tag_name }}
run: |
# user information is needed to create annotated tags (with a message)
git config user.email 'capa-dev@fireeye.com'
git config user.name 'Capa Bot'
name=${{ github.event.release.tag_name }}
git tag $name -m "https://github.com/fireeye/capa/releases/$name"
- name: Push tag to capa-rules
uses: ad-m/github-push-action@master
with:

View File

@@ -12,6 +12,8 @@
### Development
- ci: add capa release link to capa-rules tag #517 @Ana06
### Raw diffs
- [capa v1.6.1...master](https://github.com/fireeye/capa/compare/v1.6.1...master)
- [capa-rules v1.6.1...master](https://github.com/fireeye/capa-rules/compare/v1.6.1...master)