diff --git a/.gitea/workflows/lint-test-docker.yaml b/.gitea/workflows/lint-test-docker.yaml index beb7dfe0a..42b59aa51 100644 --- a/.gitea/workflows/lint-test-docker.yaml +++ b/.gitea/workflows/lint-test-docker.yaml @@ -38,14 +38,20 @@ jobs: id: branch-exists if: github.event_name == 'push' || steps.check-branch-exists.outputs.exists == 'true' && github.event_name == 'pull_request' run: | - echo ">> Branch ${{ gitea.base_ref }} exists, will continue with linting" + if [ ${{ github.event_name == 'push' }} ]; then + echo ">> Action is from a push event, will continue with linting" + + else + echo ">> Branch ${{ gitea.base_ref }} exists, will continue with linting" + + fi echo "----" echo "exists=true" >> $GITEA_OUTPUT - name: Set up Node.js - if: steps.check-branch-exists.outputs.exists == 'true' + if: steps.branch-exists.outputs.exists == 'true' uses: actions/setup-node@v6 with: node-version: '24' @@ -100,7 +106,7 @@ jobs: fi - name: Lint Docker Compose - if: steps.check-branch-exists.outputs.exists == 'true' + if: steps.check-dir-changes.outputs.changes-detected == 'true' env: CHANGED_COMPOSE: ${{ steps.check-dir-changes.outputs.compose-dir }} run: | diff --git a/.gitea/workflows/lint-test-helm.yaml b/.gitea/workflows/lint-test-helm.yaml index 6bbd18fc0..a711f0d95 100644 --- a/.gitea/workflows/lint-test-helm.yaml +++ b/.gitea/workflows/lint-test-helm.yaml @@ -39,7 +39,13 @@ jobs: id: branch-exists if: github.event_name == 'push' || steps.check-branch-exists.outputs.exists == 'true' && github.event_name == 'pull_request' run: | - echo ">> Branch ${{ gitea.base_ref }} exists, will continue with linting" + if [ ${{ github.event_name == 'push' }} ]; then + echo ">> Action is from a push event, will continue with linting" + + else + echo ">> Branch ${{ gitea.base_ref }} exists, will continue with linting" + + fi echo "----"