-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add separate watched files for IDE Packaging CI workflow (#11940)
Changelog: - add: separate `ide-changed-files.yml` workflow tracking the changes in IDE-related files
- Loading branch information
Showing
3 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters