Skip to content

Commit

Permalink
Fix bad format github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkiros authored Oct 27, 2024
1 parent d81445f commit cdd6cf9
Showing 1 changed file with 32 additions and 33 deletions.
65 changes: 32 additions & 33 deletions .github/workflows/update_db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,37 +70,36 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

update_techniques_db:
runs-on: ubuntu-latest
needs: update_cwe_db
update_technique_db:
runs-on: ubuntu-latest
needs: update_cwe_db

steps:
- name: Checkout repository
uses: actions/checkout@v2
needs: update_cwe_db

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Pull latest changes
run: git pull

- name: Update TECHNIQUES DB
run: python update_technique_db.py

- name: Commit and push changes
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
git diff --quiet && git diff --staged --quiet || git add resources/techniques_db.json
git diff --staged --quiet || git commit -m "Update CWE DB"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Pull latest changes
run: git pull

- name: Update TECHNIQUES DB
run: python update_technique_db.py

- name: Commit and push changes
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
git diff --quiet && git diff --staged --quiet || git add resources/techniques_db.json
git diff --staged --quiet || git commit -m "Update CWE DB"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cdd6cf9

Please sign in to comment.