ci: tag capa-rules on release

Add GitHub Action to tag capa-rules when releasing capa. The used tag
name is the same as the one in capa.
This commit is contained in:
Ana Maria Martinez Gomez
2021-03-12 15:32:12 +01:00
parent df36bb9f35
commit 5d16a77891

24
.github/workflows/tag.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: tag
on:
release:
types: [published]
jobs:
tag:
name: Tag capa rules
runs-on: ubuntu-20.04
steps:
- name: Checkout capa-rules
uses: actions/checkout@v2
with:
repository: fireeye/capa-rules
token: ${{ secrets.CAPA_TOKEN }}
- name: Tag capa-rules
run: git tag ${{ github.event.release.tag_name }}
- name: Push tag to capa-rules
uses: ad-m/github-push-action@master
with:
repository: fireeye/capa-rules
github_token: ${{ secrets.CAPA_TOKEN }}
tags: true