Skip to content

Commit

Permalink
Use actions/checkout@v4 features in log analysis step
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Jul 2, 2024
1 parent 228a2f1 commit f28edc9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]: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"

0 comments on commit f28edc9

Please sign in to comment.