Skip to content

Commit

Permalink
Force testing
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Oct 2, 2023
1 parent 36082a0 commit 769d526
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI

# base_ref / head_reaf are only available in PRs
on: [pull_request]
on: [pull_request, push]

jobs:
dsl_ci:
Expand All @@ -18,7 +18,8 @@ jobs:
git fetch origin ${{ github.ref }}
git diff --name-only origin/${{ github.base_ref }}...FETCH_HEAD
echo "changed-files=$(git diff --name-only origin/${{ github.base_ref }}...FETCH_HEAD| tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Run testing on changed config files
- name: Run testing on changed config files in PRs
if: github.event_name == 'pull_request'
id: dsl_check
run: |
for changed_file in ${{ steps.files.outputs.changed-files }}; do
Expand All @@ -30,6 +31,10 @@ jobs:
echo "run_job=false" >> $GITHUB_OUTPUT
fi
done
- name: Run testing always on not PRs
if: github.event_name != 'pull_request'
id: dsl_check
run: echo "run_job=true" >> $GITHUB_OUTPUT
- name: Checkout
if: steps.dsl_check.outputs.run_job == 'true'
uses: actions/checkout@v3
Expand Down

0 comments on commit 769d526

Please sign in to comment.