Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/dunedaq-develop-cpp-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
env:
CALLER_BRANCH: ${{ github.head_ref || github.ref_name }}
TARGET_BRANCH: ${{ github.base_ref || github.ref_name }}
REPO: ${{ github.event.repository.name }}

jobs:
Should_run:
Expand Down Expand Up @@ -122,8 +123,6 @@ jobs:
run: |
BRANCH="$CALLER_BRANCH"

export REPO=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')

cat << EOF > build_and_lint_package.sh
#!/bin/bash

Expand Down Expand Up @@ -239,8 +238,8 @@ jobs:
}

diff_file_name=linting_diff.txt
pr_linting_results_file=$(find pull_request_linting/ -name "*_linting.log" | tail -n 1)
nightly_linting_results_file=$(find nightly_linting/ -name "*_linting.log" | tail -n 1)
pr_linting_results_file=$(find pull_request_linting/ -name "${REPO}_linting.log" | tail -n 1)
nightly_linting_results_file=$(find nightly_linting/ -name "${REPO}_linting.log" | tail -n 1)

[[ -f "$pr_linting_results_file" ]] || echo "ERROR: No PR results file; exit 1"
[[ -f "$nightly_linting_results_file" ]] || echo "ERROR: No nightly results file; exit 2"
Expand Down