chore: run the goalie Workflow

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-01-18 18:31:19 +01:00
parent c6946dedbe
commit 0163fb056f
2 changed files with 14 additions and 17 deletions
@@ -1,10 +1,8 @@
# on a review from someone in the reviewers group, remove the awaiting-review label and add the awaiting-author label
name: Goalie Cron
on: push
# on:
# schedule:
# - cron: "* * * * *"
name: Goalie Workflow
on:
schedule:
- cron: "* * * * *"
jobs:
label:
@@ -14,8 +12,8 @@ jobs:
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v1
with:
application_id: ${{ secrets.BACKSTAGE_WORKFLOW_MEMBER_READ_APP_ID }}
application_private_key: ${{ secrets.BACKSTAGE_WORKFLOW_MEMBER_READ_PRIVATE_KEY }}
application_id: ${{ secrets.BACKSTAGE_GOALIE_APPLICATION_ID }}
application_private_key: ${{ secrets.BACKSTAGE_GOALIE_PRIVATE_KEY }}
organization: backstage
- uses: actions/checkout@v2
+8 -9
View File
@@ -89,15 +89,14 @@ module.exports = async ({ github, context, core }) => {
}
if (hasReviewed.size === expectedReviewers.size) {
console.log('should remove label');
// await github.rest.issues.removeLabel({
// issue_number: context.issue.number,
// owner: context.repo.owner,
// repo: context.repo.repo,
// name: 'awaiting-review'
// }).catch(() => {});
} else {
console.log('should add label');
await github.rest.issues
.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: 'awaiting-review',
})
.catch(() => {});
}
}
};