diff --git a/.github/workflows/gui-changed-files.yml b/.github/workflows/gui-changed-files.yml index 7c88edd9ffb3..cc6d950115cb 100644 --- a/.github/workflows/gui-changed-files.yml +++ b/.github/workflows/gui-changed-files.yml @@ -37,7 +37,6 @@ jobs: .prettierignore vitest.workspace.ts .github/workflows/gui* - .github/workflows/ide* .github/workflows/storybook.yml files_ignore: | app/ide-desktop/** diff --git a/.github/workflows/ide-changed-files.yml b/.github/workflows/ide-changed-files.yml new file mode 100644 index 000000000000..c366fedf06ff --- /dev/null +++ b/.github/workflows/ide-changed-files.yml @@ -0,0 +1,44 @@ +# This file is not auto-generated. Feel free to edit it. + +name: IDE Changed Files + +on: + workflow_call: + outputs: + all_changed_files: + description: "Returns all changed files" + value: ${{ jobs.ide-changed-files.outputs.all_changed_files }} + any_changed: + description: "Returns `true` when any of the filenames have changed" + value: ${{ jobs.ide-changed-files.outputs.any_changed }} + +jobs: + ide-changed-files: + runs-on: ubuntu-latest + name: Changed Files + outputs: + all_changed_files: ${{ steps.ide-changed-files.outputs.all_changed_files }} + any_changed: ${{ steps.ide-changed-files.outputs.any_changed }} + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 2 + - name: Get changed files + id: ide-changed-files + uses: tj-actions/changed-files@v45 + with: + files: | + app/ide-desktop/** + package.json + pnpm-lock.yaml + .github/workflows/ide* + - name: List all changed files + env: + ALL_CHANGED_FILES: ${{ steps.ide-changed-files.outputs.all_changed_files }} + run: | + if [[ "${{ steps.ide-changed-files.outputs.any_changed }}" == "true" ]]; then + echo "Files changed:" + fi + for file in ${ALL_CHANGED_FILES}; do + echo "$file" + done diff --git a/.github/workflows/ide-pull-request.yml b/.github/workflows/ide-pull-request.yml index f21d23266998..81284a46636a 100644 --- a/.github/workflows/ide-pull-request.yml +++ b/.github/workflows/ide-pull-request.yml @@ -18,6 +18,11 @@ jobs: uses: ./.github/workflows/gui-changed-files.yml secrets: inherit + ide-changed-files: + name: 🔍 IDE Files Changed + uses: ./.github/workflows/ide-changed-files.yml + secrets: inherit + engine-changed-files: name: 🔍 Engine Files Changed uses: ./.github/workflows/engine-changed-files.yml @@ -27,14 +32,14 @@ jobs: name: 📦 Package uses: ./.github/workflows/ide-packaging.yml needs: [gui-changed-files, engine-changed-files] - if: needs.gui-changed-files.outputs.any_changed == 'true' || needs.engine-changed-files.outputs.any_changed == 'true' || github.ref == 'refs/heads/develop' + if: needs.gui-changed-files.outputs.any_changed == 'true' || needs.ide-changed-files.outputs.any_changed == 'true' || needs.engine-changed-files.outputs.any_changed == 'true' || github.ref == 'refs/heads/develop' secrets: inherit ide-packaging-optional: name: 📦 Package (Optional) uses: ./.github/workflows/ide-packaging-optional.yml needs: [gui-changed-files, engine-changed-files] - if: needs.gui-changed-files.outputs.any_changed == 'true' || needs.engine-changed-files.outputs.any_changed == 'true' || github.ref == 'refs/heads/develop' + if: needs.gui-changed-files.outputs.any_changed == 'true' || needs.ide-changed-files.outputs.any_changed == 'true' || needs.engine-changed-files.outputs.any_changed == 'true' || github.ref == 'refs/heads/develop' secrets: inherit required-checks: