File tree 1 file changed +18
-1
lines changed 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 15
15
-
16
16
name : Checkout
17
17
uses : actions/checkout@v2.3.4
18
+ -
19
+ name : Temporarily disable "include administrators" branch protection
20
+ if : ${{ always() && github.ref == 'refs/heads/main' }}
21
+ id : disable_include_admins
22
+ uses : benjefferies/branch-protection-bot@1.0.7
23
+ with :
24
+ access_token : ${{ secrets.REPO_GHA_PAT }}
25
+ branch : main
26
+ enforce_admins : false
18
27
-
19
28
name : Create tag
20
29
if : github.event.pull_request.merged == true && startsWith(${{ github.head_ref }}, "release/v")
23
32
token : ${{ secrets.REPO_GHA_PAT }}
24
33
version_regex : ' ^Version tag to ([0-9]+\.[0-9]+\.[0-9]+)'
25
34
version_tag_prefix : v
26
- dry_run : false
35
+ dry_run : false
36
+ -
37
+ name : Enable "include administrators" branch protection
38
+ uses : benjefferies/branch-protection-bot@1.0.7
39
+ if : ${{ always() && github.ref == 'refs/heads/main' }}
40
+ with :
41
+ access_token : ${{ secrets.REPO_GHA_PAT }}
42
+ branch : main
43
+ enforce_admins : ${{ steps.disable_include_admins.outputs.initial_status }}
You can’t perform that action at this time.
0 commit comments