From 5ad4bf0890729ccaf176b91f38c3b6c795b8ee0a Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Thu, 1 Jul 2021 10:17:02 +0200 Subject: [PATCH] :construction_worker: Automatically push changed credentials after test --- .github/workflows/test-workflows.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/test-workflows.yml b/.github/workflows/test-workflows.yml index 909264e0ce..15e813b7ae 100644 --- a/.github/workflows/test-workflows.yml +++ b/.github/workflows/test-workflows.yml @@ -67,3 +67,17 @@ jobs: shell: bash env: N8N_ENCRYPTION_KEY: ${{secrets.ENCRYPTION_KEY}} + - + name: Export credentials + run: n8n/packages/cli/bin/n8n export:credentials --output=test-workflows/credentials.json --all --pretty + shell: bash + env: + N8N_ENCRYPTION_KEY: ${{secrets.ENCRYPTION_KEY}} + - + name: Commit and push credential changes + run: | + cd test-workflows + git config --global user.name 'n8n test bot' + git config --global user.email 'n8n-test-bot@users.noreply.github.com' + git commit -am "Automated credential update" + git push