Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob DeRosa authored and Rob DeRosa committed Aug 19, 2020
1 parent c086e6e commit 3b3d43c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ updates:
directory: '/'
# Check the npm registry for updates every day (weekdays)
schedule:
interval: 'daily'
interval: 'daily'
4 changes: 3 additions & 1 deletion .github/workflows/enforce-action-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ jobs:
violations: ${{steps.action-policy.outputs.violations}}
script: |
const script = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/action_violation.js`)
await script({github, context, core})
await script({github, context, core})
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ async function run(): Promise<void> {
allFiles.forEach((file) => {
let filePath = path.parse(file);

console.log(filePath);
//console.log(filePath);
if ((filePath.ext.toLowerCase() == ".yaml" || filePath.ext.toLowerCase() == ".yml") &&
filePath.dir.toLowerCase().endsWith(".github/workflows")) {
filePath.dir.toLowerCase() == ".github/workflows") {
workflowFilePaths.push(file);
}
});
Expand Down
5 changes: 4 additions & 1 deletion test/.github/workflows/enforce-action-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ jobs:
violations: ${{steps.action-policy.outputs.violations}}
script: |
const script = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/action_violation.js`)
await script({github, context, core})
await script({github, context, core})

0 comments on commit 3b3d43c

Please sign in to comment.