From 91f9a8d01022ad2b2b6ccac52f9de618de397201 Mon Sep 17 00:00:00 2001 From: leo Sayous Date: Sat, 8 Jul 2023 19:35:26 +0200 Subject: [PATCH] feat: use sismo bot ssh key --- .github/workflows/create-app.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/create-app.yml b/.github/workflows/create-app.yml index df586e45..42a8b7eb 100644 --- a/.github/workflows/create-app.yml +++ b/.github/workflows/create-app.yml @@ -40,16 +40,17 @@ jobs: env: SISMO_FACTORY_URL: https://factory-api.sismo.io SISMO_FACTORY_TOKEN: ${{ secrets.SISMO_FACTORY_TOKEN }} - - - uses: oleksiyrudenko/gha-git-credentials@v2.1.1 - with: - global: true - name: 'SismoBot' - email: 'robot@sismo.io' - actor: 'sismobot' - token: '${{ secrets.SISMOBOT_TOKEN }}' + + - name: Set up SSH + run: | + mkdir -p ~/.ssh + echo "${{ secrets.SISMOBOT_SSH }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan github.com >> ~/.ssh/known_hosts - name: Commit and push filled appId run: | + git config --global user.email "robot@sismo.io" + git config --global user.name "sismobot" git commit -a -m "feat: create Sismo Connect App and auto-fill appId" || exit 0 git push