From cdd6cf991b8bafc26c31720711c4b5f60135d956 Mon Sep 17 00:00:00 2001 From: Darkiros <37926502+Darkiros@users.noreply.github.com> Date: Sun, 27 Oct 2024 22:40:37 +0100 Subject: [PATCH] Fix bad format github action --- .github/workflows/update_db.yaml | 65 ++++++++++++++++---------------- 1 file changed, 32 insertions(+), 33 deletions(-) diff --git a/.github/workflows/update_db.yaml b/.github/workflows/update_db.yaml index a448bc6..b0df009 100644 --- a/.github/workflows/update_db.yaml +++ b/.github/workflows/update_db.yaml @@ -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 "github-actions@users.noreply.github.com" - 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 "github-actions@users.noreply.github.com" + 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 }}