Skip to content

Commit

Permalink
fix: actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomalaforge committed Apr 18, 2024
1 parent d191df0 commit b13eafc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .github/github-action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/label-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b13eafc

Please sign in to comment.