Skip to content

Commit

Permalink
♻️ Remove pattern option [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaHuhn committed Jan 8, 2021
1 parent a863fe8 commit c4c6e88
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 37 deletions.
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ user/repo:
dest: LICENSE
```
### Match files with regex pattern (coming soon)
```yml
user/repo:
- pattern: |
^LICENSE$
^.github/workflows/sync-.*
```
### Don't replace existing file
```yml
Expand Down
14 changes: 0 additions & 14 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30280,15 +30280,6 @@ const parseFiles = (files) => {
}
}

if (item.pattern !== undefined) {
return {
pattern: item.pattern,
dest: item.dest,
replace: item.replace !== undefined ? item.replace : REPLACE_DEFAULT,
delete: item.delete !== undefined ? item.delete : DELETE_DEFAULT
}
}

core.wanr('Warn: No source files specified')
})
}
Expand Down Expand Up @@ -30572,11 +30563,6 @@ const run = async () => {
const modified = []

await forEach(item.files, async (file) => {
if (file.pattern !== undefined) {
core.warning('Pattern not supported yet')
return
}

const fileExists = fs.existsSync(file.source)
if (fileExists === false) {
core.warning(`Source ${ file.source } not found`)
Expand Down
9 changes: 0 additions & 9 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,6 @@ const parseFiles = (files) => {
}
}

if (item.pattern !== undefined) {
return {
pattern: item.pattern,
dest: item.dest,
replace: item.replace !== undefined ? item.replace : REPLACE_DEFAULT,
delete: item.delete !== undefined ? item.delete : DELETE_DEFAULT
}
}

core.wanr('Warn: No source files specified')
})
}
Expand Down
5 changes: 0 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ const run = async () => {
const modified = []

await forEach(item.files, async (file) => {
if (file.pattern !== undefined) {
core.warning('Pattern not supported yet')
return
}

const fileExists = fs.existsSync(file.source)
if (fileExists === false) {
core.warning(`Source ${ file.source } not found`)
Expand Down

0 comments on commit c4c6e88

Please sign in to comment.