From 79ab2972edd242c00d5acccfd02fbf519cb55d97 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 6 Aug 2025 23:39:33 +0300 Subject: irc.yml: retrieve the commit hash of the *previous* successful CI run --- .github/workflows/irc.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/irc.yml b/.github/workflows/irc.yml index 7aba3f8..1d60fbc 100644 --- a/.github/workflows/irc.yml +++ b/.github/workflows/irc.yml @@ -15,20 +15,14 @@ jobs: steps: - name: Git Clone uses: actions/checkout@v4.1.6 - - name: Get last successful commit - uses: nrwl/last-successful-commit-action@v1 - id: last_successful_commit - with: - branch: 'master' - workflow_id: 'ci.yml' - github_token: ${{ secrets.GITHUB_TOKEN }} - name: Get log id: get_log run: | + # Get commit of the previous successful CI run + COMMIT="`gh run list --workflow="ci.yml" --limit=2 --status=success --json headSha -q '.[1].headSha'`" { echo 'LOG<> "$GITHUB_OUTPUT" - name: Post IRC message -- cgit v1.2.3