Skip to content

Commit

Permalink
Comment old node version only in PRs (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kusnierz authored Nov 8, 2024
1 parent d7a2692 commit ccff6a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions npm-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ runs:
# remove anything after the first dot from NODE_VERSION and then compare it. 'bc' returns 1 if condition is true
run: echo outdated-node-version=$(echo "${NODE_VERSION//.*/} < 18" | bc) >> $GITHUB_OUTPUT

- if: always() && fromJSON(steps.determine-old-node-version.outputs.outdated-node-version)
- if: always() && github.event.number != '' && fromJSON(steps.determine-old-node-version.outputs.outdated-node-version)
name: Find old NodeJs version comment
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3.1.0
id: find-old-node-version-comment
Expand All @@ -176,7 +176,7 @@ runs:
comment-author: 'github-actions[bot]'
body-includes: is not supported anymore or close to end of support and should be bumped

- if: always() && fromJSON(steps.determine-old-node-version.outputs.outdated-node-version)
- if: always() && github.event.number != '' && fromJSON(steps.determine-old-node-version.outputs.outdated-node-version)
name: Comment old NodeJs version
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v.4.0.0
with:
Expand Down

0 comments on commit ccff6a7

Please sign in to comment.