diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml new file mode 100644 index 000000000..ecd258af1 --- /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: Ana06/capa-rules + token: ${{ secrets.CAPA_RULES_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: Ana06/capa-rules + github_token: ${{ secrets.CAPA_RULES_TOKEN }} + tags: true