forked from metaplex-foundation/metaplex-program-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
34 lines (31 loc) · 1.05 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: 'List changed files in a PR'
description: 'List changed files in a PR'
inputs:
pull-number:
description: 'PR number'
required: true
include:
description: 'Matching files and paths will to include. Any non-matches will be excluded.'
required: false
exclude:
description: 'Matching files and paths will to exclude'
required: false
outputs:
changed-files:
description: Version
value: ${{ steps.set-changed-files.outputs.changed-files }}
runs:
using: 'composite'
steps:
- uses: actions/checkout@v3
- name: List changed files in a PR
uses: actions/github-script@v4
with:
script: |
const script = require('.github/actions/list-changed-files/script.js')
await script({github, context, core}, ${{ inputs.pull-number }}, '${{ inputs.include }}', '${{ inputs.exclude }}')
- name: Set changed-files from PR
id: set-changed-files
# env.CHANGED_FILES exported from script.js
run: echo "::set-output name=changed-files::${{ env.CHANGED_FILES }}"
shell: bash