Skip to content

Commit

Permalink
chore: update main github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
co-sic committed Jun 22, 2021
1 parent 527640a commit c58f0fd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ jobs:
with:
github-token: '${{ secrets.GASTROBOT_TOKEN}}'
script: |
await github.repos.removeProtectedBranchAdminEnforcement({
...context.repo,
await github.repos.deleteAdminBranchProtection({
repo: '${{ github.event.repository.name }}',
owner: '${{ github.repository_owner }}',
branch: 'main',
});
- run: npx semantic-release
Expand All @@ -100,7 +101,8 @@ jobs:
with:
github-token: '${{ secrets.GASTROBOT_TOKEN}}'
script: |
await github.repos.addProtectedBranchAdminEnforcement({
...context.repo,
await github.repos.setAdminBranchProtection({
repo: '${{ github.event.repository.name }}',
owner: '${{ github.repository_owner }}',
branch: 'main',
});

0 comments on commit c58f0fd

Please sign in to comment.