Skip to content

Commit

Permalink
set states
Browse files Browse the repository at this point in the history
  • Loading branch information
NickRimmer committed Nov 14, 2024
1 parent 43a63fa commit 98b7edf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pr-scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
// }
const hasStatus = statuses.some(status => status.context === 'PR Validation / Auto');
if (!hasStatus) {
if (!hasStatus || true) {
validate.push(pr);
}
}
Expand Down Expand Up @@ -94,6 +94,7 @@ jobs:
state: 'pending',
context: 'PR Validation / Auto',
description: 'Validation is in progress...',
target_url: context.payload.repository.html_url + '/actions/runs/' + context.runId + '/job/' + context.job,
});
- name: Prepare Validation
Expand Down Expand Up @@ -137,6 +138,7 @@ jobs:
state: 'success',
context: 'PR Validation / Auto',
description: 'Validation passed successfully.',
target_url: context.payload.repository.html_url + '/actions/runs/' + context.runId + '/job/' + context.job,
});
- name: Post failure Failure
Expand All @@ -154,5 +156,6 @@ jobs:
state: 'failure',
context: 'PR Validation / Auto',
description: 'Validation failed.',
target_url: context.payload.repository.html_url + '/actions/runs/' + context.runId + '/job/' + context.job,
});

0 comments on commit 98b7edf

Please sign in to comment.