From 5d16a7789171241a038761a1d5194f0e9158d67b Mon Sep 17 00:00:00 2001 From: Ana Maria Martinez Gomez Date: Fri, 12 Mar 2021 15:32:12 +0100 Subject: [PATCH] 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. --- .github/workflows/tag.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/tag.yml diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml new file mode 100644 index 00000000..77c66d0e --- /dev/null +++ b/.github/workflows/tag.yml @@ -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