Skip to content

Commit 29e0b92

Browse files
committed
Only run this test on pushes matching an r/ or develop
1 parent a348b72 commit 29e0b92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/pr-test-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
|| (echo "Node version does not match. Expected $NODE_VERSION, found $FOUND_VERSION"; exit 1)
2727
2828
- name: Ensure our node version matches the main repo's version for push events
29-
if: github.event_name == 'push'
29+
if: github.event_name == 'push' && (startsWith("r/", github.ref_name) || "develop" == github.ref_name)
3030
run: |
3131
curl -s https://raw.githubusercontent.com/opencast/opencast/refs/heads/${{ github.ref_name }}/pom.xml -o pom.xml
3232
export FOUND_VERSION="$(grep node.version pom.xml | grep -Eo 'v[0-9.]+' | cut -f 1 -d '.' | cut -c 2-)"

0 commit comments

Comments
 (0)