Skip to content

Commit 0209d15

Browse files
authored
CI: treat push to develop in the same way as PRs (spack#22421)
1 parent 4c57c88 commit 0209d15

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/unit_tests.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,12 @@ jobs:
9898
# setting environment variables from earlier steps: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
9999
#
100100
- id: coverage
101-
# Run the subsequent jobs with coverage if this is a PR and core has been modified
102-
# or if this workflow is triggered by a push event (this means that once a PR is
103-
# merged we'll perform a full run with CI on develop even though the PR was only
104-
# modifying packages)
101+
# Run the subsequent jobs with coverage if core has been modified,
102+
# regardless of whether this is a pull request or a push to a branch
105103
run: |
106104
echo Core changes: ${{ steps.filter.outputs.core }}
107105
echo Event name: ${{ github.event_name }}
108-
if [ "${{ steps.filter.outputs.core }}" == "true" ] || [ "${{ github.event_name }}" == 'push' ]
106+
if [ "${{ steps.filter.outputs.core }}" == "true" ]
109107
then
110108
echo "::set-output name=with_coverage::true"
111109
else

0 commit comments

Comments
 (0)