[Fix][WRS-2026]: Prevent changing (update/delete) of "Hub-Based" connectors via CLI #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Comment deploy URL on PR open | |
on: | |
pull_request: | |
types: [opened] | |
paths: | |
- 'src/connector-cli/**' | |
jobs: | |
comment: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: FranzDiebold/github-env-vars-action@v2 | |
- uses: actions/checkout@v1 | |
- name: 'Comment on PR' | |
uses: actions/[email protected] | |
if: github.event_name == 'pull_request' | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const { issue: { number: issue_number }, repo: { owner, repo } } = context; | |
const fs = require('fs'); | |
const template = fs.readFileSync('.github/pull_request_comment_template.md', 'utf8'); | |
const comment = template.replaceAll('<<ISSUE_NUMBER>>', issue_number); | |
github.issues.createComment({ issue_number, owner, repo, body: comment }); |