Skip to content

Commit

Permalink
self-hosted-arm64-runners: use async correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Feb 23, 2024
1 parent c5ebb1c commit 57ec7de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GitForWindowsHelper/self-hosted-arm64-runners.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = async (context, req) => {
return ['ADMIN', 'MAINTAIN', 'WRITE'].includes(permission.toString())
}

if (!isAllowed(sender)) {
if (!await isAllowed(sender)) {
if (action !== 'completed') {
// Cancel workflow run
const { cancelWorkflowRun } = require('./check-runs')
Expand Down

0 comments on commit 57ec7de

Please sign in to comment.