Python conversion of maintenance commands (#2739)

* updating atomics count in README.md [ci skip]

* converting python

* rename

* fix path

* minor refactor

---------

Co-authored-by: publish bot <opensource@redcanary.com>
This commit is contained in:
Hare Sudhan
2024-04-07 10:52:35 -04:00
committed by GitHub
parent 3bcc943259
commit 3bf390b116
17 changed files with 900 additions and 751 deletions
+2 -24
View File
@@ -1,7 +1,7 @@
name: generate-docs
on:
push:
branches: ["master"]
branches: [ "master" ]
jobs:
generate-docs:
@@ -15,29 +15,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Generate and commit unique GUIDs for each atomic test
run: |
bin/generate-guids.rb
echo ""
echo ""
git status
echo ""
echo ""
git diff-index HEAD --
if git diff-index --quiet HEAD -- ; then
echo "Not committing GUID changes because there are no changes"
else
git config credential.helper 'cache --timeout=120'
git config user.email "opensource@redcanary.com"
git config user.name "Atomic Red Team GUID generator"
git add atomics
git commit -am "Generate GUIDs from job=$GITHUB_JOB branch=$GITHUB_REF_NAME [skip ci]"
git push origin $GITHUB_REF_NAME -f
fi
bundler-cache: true
- name: generate markdown docs for atomics
run: |