From fa7358f7c65f6aaced1d8518ff2b6445c82f033c Mon Sep 17 00:00:00 2001 From: Daniel Sheppard Date: Fri, 11 Oct 2024 11:45:33 -0500 Subject: [PATCH] Update master-slugs.yml --- .github/workflows/master-slugs.yml | 33 +++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/.github/workflows/master-slugs.yml b/.github/workflows/master-slugs.yml index 39710428..f9c0c6fb 100644 --- a/.github/workflows/master-slugs.yml +++ b/.github/workflows/master-slugs.yml @@ -11,6 +11,8 @@ jobs: contents: write steps: - uses: actions/checkout@v4 + with: + ssh-key: "{{secrets.SLUG_DEPLOY_KEY}}" - name: Setup Python uses: actions/setup-python@v5 id: setup_python @@ -32,13 +34,24 @@ jobs: if: steps.cache-venv.outputs.cache-hit != 'true' - name: Regenerate Master Slug List run: python3 tests/generate-slug-list.py - - name: Commit and Push Changes to Master - uses: EndBug/add-and-commit@v9 - with: - author_name: NetBox-Bot - author_email: info@netboxlabs.com - committer_name: NetBox-Bot - committer_email: info@netboxlabs.com - default_author: github_actions - message: "Regenerate master slug list after successful PR merge" - push: true + - name: Set-Up Git + run: | + git config --global user.name 'NetBox-Bot' + git config --global user.email 'info@netboxlabs.com + - name: Commit + run: | + git add . + git commit -m "Regenerate master slug list after successful PR merge" + - name: Push to remote + run: | + git push +# - name: Commit and Push Changes to Master +# uses: EndBug/add-and-commit@v9 +# with: +# author_name: NetBox-Bot +# author_email: info@netboxlabs.com +# committer_name: NetBox-Bot +# committer_email: info@netboxlabs.com +# default_author: github_actions +# message: "Regenerate master slug list after successful PR merge" +# push: true