Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 0fadccd

Browse files
committed
fix: yaml formatting in workflow
1 parent fb1d534 commit 0fadccd

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

.github/workflows/project-stats.yml

+26-26
Original file line numberDiff line numberDiff line change
@@ -68,32 +68,32 @@ jobs:
6868
git push origin main
6969
7070
- name: Re-enable branch protection
71-
id: enable-branch-protection
72-
if: always()
73-
uses: actions/github-script@v1
74-
with:
75-
github-token: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
76-
previews: luke-cage-preview
77-
script: |
78-
const result = await github.repos.updateBranchProtection({
79-
owner: context.repo.owner,
80-
repo: context.repo.repo,
81-
branch: 'develop',
82-
required_status_checks: {
83-
strict: false,
84-
contexts: ['Gatsby Build']
85-
},
86-
restrictions: {
87-
users: [],
88-
teams: []
89-
},
90-
enforce_admins: true,
91-
required_pull_request_reviews: {
92-
dismiss_stale_reviews: true,
93-
required_approving_review_count: 1
94-
}
95-
})
96-
console.log("Result:", result)
71+
id: enable-branch-protection
72+
if: always()
73+
uses: actions/github-script@v1
74+
with:
75+
github-token: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
76+
previews: luke-cage-preview
77+
script: |
78+
const result = await github.repos.updateBranchProtection({
79+
owner: context.repo.owner,
80+
repo: context.repo.repo,
81+
branch: 'develop',
82+
required_status_checks: {
83+
strict: false,
84+
contexts: ['Gatsby Build']
85+
},
86+
restrictions: {
87+
users: [],
88+
teams: []
89+
},
90+
enforce_admins: true,
91+
required_pull_request_reviews: {
92+
dismiss_stale_reviews: true,
93+
required_approving_review_count: 1
94+
}
95+
})
96+
console.log("Result:", result)
9797
9898
job-checkout-and-build:
9999
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)