diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f1a6e9ff..4702b890b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -812,15 +812,17 @@ jobs: install: | Text::Table::CSV Text::Table::Tiny + - uses: actions/checkout@v4 + with: + repository: graphia-app/defects + ssh-key: ${{ secrets.DEFECTS_SSH_PRIVATE_KEY }} + path: defects - name: Analyse run: | + cd defects SHORT_SHA=$(git rev-parse --short HEAD) MESSAGE=$(git log --format=%B -n1 HEAD | head -n1) BRANCH=$(echo ${GITHUB_REF#refs/*/}) - eval "$(ssh-agent -s)" - echo "${{ secrets.DEFECTS_SSH_PRIVATE_KEY }}" | ssh-add - - git config --global user.email "" - git config --global user.name "Log Analyser" - git clone git@github.com:graphia-app/defects.git defects - cd defects + git config user.email "" + git config user.name "Log Analyser" ./update.sh -b $BRANCH -l "../logs" -m "$SHORT_SHA $MESSAGE"