Skip to content

Commit 34e5482

Browse files
tomalaforgevimulatus
authored andcommitted
fix: actions
1 parent fc8e381 commit 34e5482

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/github-action/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ const { contributors } = require('./contributors');
55
async function run() {
66
try {
77
const title = github.context.payload.pull_request.title;
8-
const labels = [];
9-
10-
if(!title.startsWith('Answer:')) {
11-
return;
12-
}
13-
labels.push('answer');
8+
const labels = ['answer'];
149

1510
const match = title.match(/Answer:\s*(\d+)/);
1611
if (match) {

.github/workflows/label-issue.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
add_supporters:
99
runs-on: ubuntu-latest
10+
if: ${{ startsWith(github.event.pull_request.title, 'Answer') }}
1011
steps:
1112
- name: checkout
1213
uses: actions/checkout@v2

0 commit comments

Comments
 (0)