Skip to content

Commit b611c85

Browse files
authored
Another PR to test Github Actions Workflows (#642)
1 parent e61c53d commit b611c85

File tree

3 files changed

+50
-42
lines changed

3 files changed

+50
-42
lines changed

.github/workflows/deploy-to-control-plane-review-app.yml

+1-38
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ run-name: Deploy PR Review App - PR #${{ github.event.pull_request.number || git
55
# Controls when the workflow will run
66
on:
77
pull_request:
8-
types: [opened, synchronize, reopened]
8+
types: [synchronize, reopened]
99
issue_comment:
1010
types: [created]
1111
workflow_dispatch:
@@ -366,40 +366,3 @@ jobs:
366366
comment_id: ${{ steps.create-comment.outputs.comment-id }},
367367
body: isSuccess ? successMessage : failureMessage
368368
});
369-
370-
- name: Show Quick Reference
371-
if: github.event_name == 'pull_request' && github.event.action == 'opened'
372-
uses: actions/github-script@v7
373-
with:
374-
script: |
375-
try {
376-
console.log('Creating quick reference message...');
377-
const helpMessage = [
378-
'# 🚀 Quick Review App Commands',
379-
'',
380-
'Welcome! Here are the commands you can use in this PR:',
381-
'',
382-
'### `/deploy-review-app`',
383-
'Deploy your PR branch for testing',
384-
'',
385-
'### `/delete-review-app`',
386-
'Remove the review app when done',
387-
'',
388-
'### `/help`',
389-
'Show detailed instructions, environment setup, and configuration options.',
390-
'',
391-
'---'
392-
].join('\n');
393-
394-
await github.rest.issues.createComment({
395-
owner: context.repo.owner,
396-
repo: context.repo.repo,
397-
issue_number: context.issue.number,
398-
body: helpMessage
399-
});
400-
401-
console.log('Quick reference posted successfully');
402-
} catch (error) {
403-
console.error('Error posting quick reference:', error);
404-
core.setFailed(`Failed to post quick reference: ${error.message}`);
405-
}

.github/workflows/deploy-to-control-plane-staging.yml

-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ concurrency:
2222
cancel-in-progress: true
2323

2424
jobs:
25-
debug:
26-
uses: ./.github/workflows/debug-workflow.yml
27-
with:
28-
debug_enabled: false
2925

3026
validate-branch:
3127
runs-on: ubuntu-latest

.github/workflows/review-app-help.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Show Quick Help on PR Creation
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
show-quick-help:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Show Quick Reference
16+
uses: actions/github-script@v7
17+
with:
18+
script: |
19+
try {
20+
console.log('Creating quick reference message...');
21+
const helpMessage = [
22+
'# 🚀 Quick Review App Commands',
23+
'',
24+
'Welcome! Here are the commands you can use in this PR:',
25+
'',
26+
'### `/deploy-review-app`',
27+
'Deploy your PR branch for testing',
28+
'',
29+
'### `/delete-review-app`',
30+
'Remove the review app when done',
31+
'',
32+
'### `/help`',
33+
'Show detailed instructions, environment setup, and configuration options.',
34+
'',
35+
'---'
36+
].join('\n');
37+
38+
await github.rest.issues.createComment({
39+
owner: context.repo.owner,
40+
repo: context.repo.repo,
41+
issue_number: context.issue.number,
42+
body: helpMessage
43+
});
44+
45+
console.log('Quick reference posted successfully');
46+
} catch (error) {
47+
console.error('Error posting quick reference:', error);
48+
core.setFailed(`Failed to post quick reference: ${error.message}`);
49+
}

0 commit comments

Comments
 (0)