Skip to content

Commit 94a71b7

Browse files
committed
WIP
1 parent cad1e95 commit 94a71b7

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.github/workflows/commit-message-based-labels.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: DevInfra
22

33
on:
4+
push:
5+
branches:
6+
- workflow-test
47
pull_request_target:
58
types: [opened, synchronize, reopened]
69

github-actions/pull-request-labeling/action.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ inputs:
99
runs:
1010
using: composite
1111
steps:
12-
- name: Initialize environment
13-
uses: ./github-actions/npm/checkout-and-setup-node
14-
- name: Apply labels to pull requests
15-
run: node $GITHUB_ACTION_PATH/main.js
12+
- run: node $GITHUB_ACTION_PATH/main.js
1613
shell: bash
14+
with:
15+
angular-robot-key: ${{ inputs.angular-robot-key }}

github-actions/pull-request-labeling/lib/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ class PullRequestLabeling {
202202
// Only run if the action is executed in a repository within the Angular org. This is in place
203203
// to prevent the action from actually running in a fork of a repository with this action set up.
204204
if (context.repo.owner === 'angular') {
205+
console.log('THIS IS THE PWD', process.cwd());
205206
PullRequestLabeling.run().catch((e: Error) => {
206207
console.error(e);
207208
core.setFailed(e.message);

github-actions/pull-request-labeling/main.js

Lines changed: 2 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)