fix: add always()

This commit is contained in:
Constrat
2025-10-21 15:26:20 +02:00
parent 639d715aa9
commit 6b1a189b7b

View File

@@ -356,7 +356,7 @@ jobs:
# gh workflow run release-nightly-ota.yml -f release_body="Auto Release of Resource Updates"
- name: Comment on issue if failed
if: (failure() || cancelled()) && github.ref == 'refs/heads/dev'
if: always() && (failure() || cancelled()) && github.ref == 'refs/heads/dev'
run: |
# Minimize old failure comments
comments=$(gh api repos/${{ github.repository }}/issues/14489/comments --jq '.[] | select(.user.login == "github-actions[bot]") | select(.body | contains("${{ github.server_url }}/${{ github.repository }}/actions/runs/")) | .node_id')