Skip to content

Commit

Permalink
ci: tag capa-rules on release
Browse files Browse the repository at this point in the history
Add GitHub Action to tag capa-rules when releasing capa. The used tag
name is the same as the one in capa.
  • Loading branch information
Ana06 committed Mar 12, 2021
1 parent 06c958f commit 8d5b4d0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8d5b4d0

Please sign in to comment.