Skip to content

Commit

Permalink
making sure that CI commits/mirror only applies to the push event
Browse files Browse the repository at this point in the history
  • Loading branch information
Ximaz committed Mar 20, 2024
1 parent 73dd15a commit c7ab026
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# | -> Repository Variables (not the Environment Variables) |
# -----------------------------------------------------------------------------
#
# ARTIFACTSS: space-separated artifactSs generated by the `make` command.
# ARTIFACTS: space-separated artifacts generated by the `make` command.
#
# MIRROR_URL: the mirror repository URL in an SSH format :
# git@<host>:<username>/<repository>
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
- name: "Temporary files"
run: "[[ $(find . -type f \\( -name '*.o' -o -name '*.log' -o -name '.env' -o -name '*.so' -o -name '*.a' -o -name '*.gcno' -o -name '*.gcda' \\)) == \"\" ]] && exit 0 || exit 1"

- name: "Checking for the artifactS before compilation"
- name: "Checking for the artifacts before compilation"
run: "for a in ${{ vars.ARTIFACTS }} ; do [ ! -f \"${a}\" ]; done"

- name: "Check coding style"
Expand Down Expand Up @@ -182,7 +182,7 @@ jobs:
needs:
- "check-push-commits"
runs-on: "ubuntu-latest"
if: "${{ needs.check-push-commits.outputs.continue == '1' && format('refs/heads/{0}', github.event.repository.default_branch) != github.ref }}"
if: "${{ needs.check-push-commits.outputs.continue == '1' && github.event_name == 'push' && format('refs/heads/{0}', github.event.repository.default_branch) != github.ref }}"
steps:
- name: "Checkout"
uses: "actions/checkout@v4.1.1"
Expand Down

0 comments on commit c7ab026

Please sign in to comment.