fix: actions

This commit is contained in:
thomas
2024-04-18 09:38:21 +02:00
parent d191df0c16
commit b13eafc471
2 changed files with 2 additions and 6 deletions

View File

@@ -5,12 +5,7 @@ const { contributors } = require('./contributors');
async function run() {
try {
const title = github.context.payload.pull_request.title;
const labels = [];
if(!title.startsWith('Answer:')) {
return;
}
labels.push('answer');
const labels = ['answer'];
const match = title.match(/Answer:\s*(\d+)/);
if (match) {

View File

@@ -7,6 +7,7 @@ on:
jobs:
add_supporters:
runs-on: ubuntu-latest
if: ${{ startsWith(github.event.pull_request.title, 'Answer') }}
steps:
- name: checkout
uses: actions/checkout@v2