From 68f2516c2dc20f4ab40df8924dbc4f7b6e7b3002 Mon Sep 17 00:00:00 2001 From: Jean-Marie RENOUARD Date: Wed, 22 Mar 2023 16:53:42 +0100 Subject: [PATCH] feat: auto commit changes --- .github/workflows/update_cve_and_docs.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/update_cve_and_docs.yml b/.github/workflows/update_cve_and_docs.yml index 10488df..64cc25d 100644 --- a/.github/workflows/update_cve_and_docs.yml +++ b/.github/workflows/update_cve_and_docs.yml @@ -34,12 +34,12 @@ jobs: pwd sudo bash ./updateStaff.sh - # Runs a single command using the runners shell - - name: Commit CVE result to repo - run: | - pwd - sudo git config --global user.name "Jean-Marie Renouard" - sudo git config --global user.email "jmrenouard@gmail.com" - sudo git add ./vulnerabilities.csv ./mysqltuner.pl ./USAGE.md - sudo git commit -m "Updates CVE and docs (via Actions) - $(date +'%Y-%m-%d')" - sudo git push \ No newline at end of file + - name: Run the Action + uses: devops-infra/action-commit-push@master + with: + github_token: "${{ secrets.GITHUB_TOKEN }}" + add_timestamp: true + commit_prefix: "[AUTO]" + commit_message: "Updates CVE and docs (via Actions)" + force: false + target_branch: update/version \ No newline at end of file