From 025a7a89af773a250b16fecd87fe911b5cf78c4d Mon Sep 17 00:00:00 2001 From: Matteo Casonato Date: Mon, 20 Feb 2023 23:04:52 +0100 Subject: [PATCH] bugfix for level 1 grants with 1 milestone see https://github.com/w3f/Grant-Milestone-Delivery/actions/runs/4226831906 --- .github/workflows/badge_or_last_milestone.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/badge_or_last_milestone.yml b/.github/workflows/badge_or_last_milestone.yml index 1ffd48941..372e8dcfc 100644 --- a/.github/workflows/badge_or_last_milestone.yml +++ b/.github/workflows/badge_or_last_milestone.yml @@ -90,10 +90,14 @@ jobs: comment-last-milestone: runs-on: ubuntu-latest + # "comment-badge" in needs so we establish the correct messages order needs: [comment-badge, check-needs-badge] - if: needs.check-needs-badge.outputs.needs_last_milestone_comment + # "always()" will make this job run also if one of the needs is not completed; + # in this way, the last_milestone comment will be sent also if the badge comment wasn't + if: always() steps: - name: Last milestone comment + if: needs.check-needs-badge.outputs.needs_last_milestone_comment uses: thollander/actions-comment-pull-request@1.0.2 with: message: >