Merge pull request #258 from jtothej/wfp #255
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync tests/data submodule in capa | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
sync_submodule_capa: | |
runs-on: ubuntu-20.04 | |
steps: | |
# Do not checkout submodules as we don't need capa-rules and we need to | |
# update the tests/data submodule reference | |
- name: Checkout capa | |
uses: actions/checkout@b80ff79f1755d06ba70441c368a6fe801f5f3a62 # v4.1.6 | |
with: | |
repository: mandiant/capa | |
token: ${{ secrets.CAPA_TOKEN }} | |
- name: Checkout capa-testfiles | |
uses: actions/checkout@b80ff79f1755d06ba70441c368a6fe801f5f3a62 # v4.1.6 | |
with: | |
path: tests/data | |
- name: Commit changes | |
run: | | |
git config user.email '[email protected]' | |
git config user.name 'Capa Bot' | |
git commit -am 'Sync capa-testfiles submodule' | |
- name: Push changes to capa | |
uses: ad-m/github-push-action@master | |
with: | |
repository: mandiant/capa | |
github_token: ${{ secrets.CAPA_TOKEN }} |