Skip to content

Commit

Permalink
hook for shared code
Browse files Browse the repository at this point in the history
  • Loading branch information
steam0r committed Mar 5, 2024
1 parent d205ab2 commit 06aa472
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/webook_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'webhook dev'

on:
workflow_dispatch:
push:
branches:
- develop

jobs:
webhook-dev:
runs-on: ubuntu-latest
steps:
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
shared:
- 'shared/**'
- name: notify dev
if: needs.files-changed.outputs.shared == 'true'
needs: files-changed
uses: distributhor/workflow-webhook@v2
env:
webhook_type: "json-extended"
webhook_url: "https://dev.cables.gl/api/webhooks/updateshared?secret=${{ secrets.WEBHOOK_SECRET }}"
webhook_secret: ${{ secrets.WEBHOOK_SECRET }}
4 changes: 0 additions & 4 deletions shared/api/utils/shared_ops_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -1122,9 +1122,6 @@ export default class SharedOpsUtil extends SharedUtil

validateAndFormatOpCode(code)
{
console.log("CLI", eslint, this.cli, this._getCLIConfig());

console.log("BEFORE", code);
const { results } = this.cli.executeOnText(code);
const { messages } = results[0];

Expand All @@ -1135,7 +1132,6 @@ export default class SharedOpsUtil extends SharedUtil
"error": hasFatal,
"message": messages[0]
};
console.log("AFTER", status);
return status;
}

Expand Down

0 comments on commit 06aa472

Please sign in to comment.