chore: replace lots0logs/gh-action-get-changed-files to tj-actions/changed-files
This commit is contained in:
parent
a628d4361f
commit
be47decfc9
|
@ -21,15 +21,16 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Calculate file differences
|
|
||||||
uses: lots0logs/gh-action-get-changed-files@2.1.4
|
|
||||||
id: diff
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Calculate file differences
|
||||||
|
id: changed-files
|
||||||
|
uses: tj-actions/changed-files@v35
|
||||||
|
with:
|
||||||
|
json: true
|
||||||
|
json_raw_format: true
|
||||||
|
|
||||||
- name: Generate testing matrix
|
- name: Generate testing matrix
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
id: generator
|
id: generator
|
||||||
|
@ -38,9 +39,9 @@ jobs:
|
||||||
script: |
|
script: |
|
||||||
const script = require(`${process.env.GITHUB_WORKSPACE}/genMatrix.js`)
|
const script = require(`${process.env.GITHUB_WORKSPACE}/genMatrix.js`)
|
||||||
return script(
|
return script(
|
||||||
${{ steps.diff.outputs.added }},
|
${{ steps.changed-files.outputs.added_files }},
|
||||||
${{ steps.diff.outputs.modified }},
|
${{ steps.changed-files.outputs.modified_files }},
|
||||||
${{ steps.diff.outputs.renamed }},
|
${{ steps.changed-files.outputs.renamed_files }},
|
||||||
);
|
);
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
|
|
Loading…
Reference in New Issue