Skip to content

Commit

Permalink
fix: properly fix workflow syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
aswanson-nr committed May 11, 2021
1 parent 0fadccd commit 5452595
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/project-stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,33 +67,33 @@ jobs:
git cherry-pick $CHERRYCOMMIT
git push origin main
- name: Re-enable branch protection
id: enable-branch-protection
if: always()
uses: actions/github-script@v1
with:
github-token: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
previews: luke-cage-preview
script: |
const result = await github.repos.updateBranchProtection({
owner: context.repo.owner,
repo: context.repo.repo,
branch: 'develop',
required_status_checks: {
strict: false,
contexts: ['Gatsby Build']
},
restrictions: {
users: [],
teams: []
},
enforce_admins: true,
required_pull_request_reviews: {
dismiss_stale_reviews: true,
required_approving_review_count: 1
}
})
console.log("Result:", result)
- name: Re-enable branch protection
id: enable-branch-protection
if: always()
uses: actions/github-script@v1
with:
github-token: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
previews: luke-cage-preview
script: |
const result = await github.repos.updateBranchProtection({
owner: context.repo.owner,
repo: context.repo.repo,
branch: 'develop',
required_status_checks: {
strict: false,
contexts: ['Gatsby Build']
},
restrictions: {
users: [],
teams: []
},
enforce_admins: true,
required_pull_request_reviews: {
dismiss_stale_reviews: true,
required_approving_review_count: 1
}
})
console.log("Result:", result)
job-checkout-and-build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5452595

Please sign in to comment.