Skip to content

Commit 625afa8

Browse files
committed
small fixes
1 parent b731dde commit 625afa8

6 files changed

+17
-16
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ jobs:
5858
fi
5959
6060
- name: Setup Environment
61-
uses: ./.github/actions/setup-environment
61+
uses: ./.github/actions/setup-environment@justin808-working-for-deploys
62+
with:
63+
org: ${{ env.CPLN_ORG }}
64+
token: ${{ env.CPLN_TOKEN }}
6265

6366
- name: Set shared functions
6467
id: shared-functions
@@ -129,7 +132,7 @@ jobs:
129132
return { commentId: comment.data.id };
130133
131134
- name: Delete Review App
132-
uses: ./.github/actions/delete-control-plane-app
135+
uses: ./.github/actions/delete-control-plane-app@justin808-working-for-deploys
133136
with:
134137
app_name: ${{ env.APP_NAME }}
135138
org: ${{ env.CPLN_ORG }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
fetch-depth: 0 # Fetch all history for proper SHA handling
2727
ref: master # Explicitly checkout master branch
2828

29-
- uses: ./.github/actions/deploy-to-control-plane
29+
- uses: ./.github/actions/deploy-to-control-plane@justin808-working-for-deploys
3030
with:
3131
app_name: ${{ secrets.APP_NAME_STAGING }}
3232
org: ${{ secrets.CPLN_ORG_STAGING }}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || steps.getRef.outputs.PR_REF || github.ref }}
4141

4242
- name: Setup Environment
43-
uses: ./.github/actions/setup-environment
43+
uses: ./.github/actions/setup-environment@justin808-working-for-deploys
4444
with:
4545
token: ${{ env.CPLN_TOKEN }}
4646
org: ${{ env.CPLN_ORG }}
@@ -228,7 +228,7 @@ jobs:
228228
github.event.issue.pull_request &&
229229
github.event.comment.body == '/deploy-review-app') ||
230230
(steps.check-app.outputs.app_exists == 'true')
231-
uses: ./.github/actions/build-docker-image
231+
uses: ./.github/actions/build-docker-image@justin808-working-for-deploys
232232
with:
233233
app_name: ${{ env.APP_NAME }}
234234
org: ${{ env.CPLN_ORG }}
@@ -269,7 +269,7 @@ jobs:
269269
github.event.issue.pull_request &&
270270
github.event.comment.body == '/deploy-review-app') ||
271271
(steps.check-app.outputs.app_exists == 'true')
272-
uses: ./.github/actions/deploy-to-control-plane
272+
uses: ./.github/actions/deploy-to-control-plane@justin808-working-for-deploys
273273
with:
274274
app_name: ${{ env.APP_NAME }}
275275
org: ${{ env.CPLN_ORG }}

.github/workflows/help-command.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Show Help for Commands
33
on:
44
issue_comment:
55
types: [created]
6+
workflow_dispatch:
67

78
permissions:
89
issues: write
@@ -11,9 +12,10 @@ permissions:
1112
jobs:
1213
show-help:
1314
if: |
14-
github.event_name == 'issue_comment' &&
15-
github.event.issue.pull_request &&
16-
github.event.comment.body == '/help'
15+
github.event_name == 'workflow_dispatch' ||
16+
(github.event_name == 'issue_comment' &&
17+
github.event.issue.pull_request &&
18+
github.event.comment.body == '/help')
1719
runs-on: ubuntu-latest
1820

1921
steps:
@@ -84,14 +86,10 @@ jobs:
8486
'For more information, see the [React on Rails Tutorial documentation](https://github.com/shakacode/react-on-rails/tree/master/react-webpack-rails-tutorial)'
8587
].join('\n');
8688
87-
console.log('Issue number:', github.context.payload.issue.number);
88-
console.log('Owner:', context.repo.owner);
89-
console.log('Repo:', context.repo.repo);
90-
9189
await github.rest.issues.createComment({
9290
owner: context.repo.owner,
9391
repo: context.repo.repo,
94-
issue_number: github.context.payload.issue.number,
92+
issue_number: context.issue.number,
9593
body: helpMessage
9694
});
9795

.github/workflows/nightly-remove-stale-review-apps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v4
2020

2121
- name: Setup Environment
22-
uses: ./.github/actions/setup-environment
22+
uses: ./.github/actions/setup-environment@justin808-working-for-deploys
2323

2424
- name: Get Stale PRs
2525
id: stale_prs

.github/workflows/promote-staging-to-production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: actions/checkout@v4
2424

2525
- name: Setup Environment
26-
uses: ./.github/actions/setup-environment
26+
uses: ./.github/actions/setup-environment@justin808-working-for-deploys
2727
env:
2828
CPLN_TOKEN: ${{ secrets.CPLN_TOKEN }}
2929

0 commit comments

Comments
 (0)