Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e64030c44 |
2
.github/workflows/submodule-sync.yml
vendored
2
.github/workflows/submodule-sync.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
|||||||
git submodule update --remote --recursive
|
git submodule update --remote --recursive
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v4.2.4
|
uses: peter-evans/create-pull-request@v4.2.3
|
||||||
with:
|
with:
|
||||||
title: "Updated submodule"
|
title: "Updated submodule"
|
||||||
labels: "merge when passing"
|
labels: "merge when passing"
|
||||||
|
|||||||
2
.github/workflows/sync-release-version.yml
vendored
2
.github/workflows/sync-release-version.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
output: 'HISTORY.md'
|
output: 'HISTORY.md'
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v4.2.4
|
uses: peter-evans/create-pull-request@v4.2.3
|
||||||
with:
|
with:
|
||||||
base: "main"
|
base: "main"
|
||||||
labels: "merge when passing"
|
labels: "merge when passing"
|
||||||
|
|||||||
11
README.md
11
README.md
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
## changed-files
|
## changed-files
|
||||||
|
|
||||||
Retrieve all changed files and directories relative to a target branch, preceeding commit or the last remote commit returning a **relative paths** from the project root.
|
Retrieve all changed files and directories relative to the target branch or the last remote commit returning a **relative path** from the project root.
|
||||||
|
|
||||||
## Table of contents
|
## Table of contents
|
||||||
|
|
||||||
@@ -120,19 +120,18 @@ jobs:
|
|||||||
echo "List all the files that have changed: ${{ steps.changed-files-specific.outputs.all_changed_files }}"
|
echo "List all the files that have changed: ${{ steps.changed-files-specific.outputs.all_changed_files }}"
|
||||||
|
|
||||||
# Example 3
|
# Example 3
|
||||||
- name: Get all changed *.js file(s) or any file in the static folder excluding the docs folder
|
- name: Get changed js files excluding the docs folder
|
||||||
id: changed-files-excluded
|
id: changed-files-excluded
|
||||||
uses: tj-actions/changed-files@v35
|
uses: tj-actions/changed-files@v35
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
**/*.js
|
**/*.js
|
||||||
static
|
files_ignore: docs/** # Alternatively using: `docs`
|
||||||
files_ignore: docs
|
|
||||||
|
|
||||||
- name: Run step if any *.js file(s) or any file in the static folder change
|
- name: Run step if any other js file(s) change
|
||||||
if: steps.changed-files-excluded.outputs.any_changed == 'true'
|
if: steps.changed-files-excluded.outputs.any_changed == 'true'
|
||||||
run: |
|
run: |
|
||||||
echo "One or more *.js file(s) or any file in the static folder but not in the doc folder has changed."
|
echo "One or more js files not in the doc folder has changed."
|
||||||
echo "List all the files that have changed: ${{ steps.changed-files-excluded.outputs.all_changed_files }}"
|
echo "List all the files that have changed: ${{ steps.changed-files-excluded.outputs.all_changed_files }}"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ runs:
|
|||||||
INPUT_FETCH_DEPTH: ${{ inputs.fetch_depth }}
|
INPUT_FETCH_DEPTH: ${{ inputs.fetch_depth }}
|
||||||
INPUT_SINCE_LAST_REMOTE_COMMIT: ${{ inputs.since_last_remote_commit }}
|
INPUT_SINCE_LAST_REMOTE_COMMIT: ${{ inputs.since_last_remote_commit }}
|
||||||
- name: Glob match
|
- name: Glob match
|
||||||
uses: tj-actions/glob@v16.12
|
uses: tj-actions/glob@cebfb084cdf62d72c5318b1b3595ac5a45ed022f # renovate: tag=v16.11
|
||||||
id: glob
|
id: glob
|
||||||
with:
|
with:
|
||||||
files: ${{ inputs.files }}
|
files: ${{ inputs.files }}
|
||||||
@@ -255,7 +255,7 @@ runs:
|
|||||||
INPUT_HAS_CUSTOM_PATTERNS: ${{ steps.glob.outputs.has-custom-patterns }}
|
INPUT_HAS_CUSTOM_PATTERNS: ${{ steps.glob.outputs.has-custom-patterns }}
|
||||||
INPUT_JSON_RAW_FORMAT: ${{ inputs.json_raw_format }}
|
INPUT_JSON_RAW_FORMAT: ${{ inputs.json_raw_format }}
|
||||||
- name: Generate output files
|
- name: Generate output files
|
||||||
uses: tj-actions/json2file@v1.3.0
|
uses: tj-actions/json2file@ee0fd2ce53e57fa50da61615cd644018eaf3ab6c # renovate: tag=v1.3.0
|
||||||
if: inputs.write_output_files == 'true'
|
if: inputs.write_output_files == 'true'
|
||||||
with:
|
with:
|
||||||
outputs: ${{ toJSON(steps.changed-files.outputs) }}
|
outputs: ${{ toJSON(steps.changed-files.outputs) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user