Skip to content

Commit a47e6ae

Browse files
committed
gh workflows: fmt
1 parent 29471ac commit a47e6ae

3 files changed

Lines changed: 13 additions & 23 deletions

File tree

.github/workflows/build.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ name: Build
77
'permissions': {}
88
'env':
99
'GO_VERSION': '1.26.1'
10-
1110
'on':
1211
'push':
1312
'tags':
1413
- 'v*'
1514
'branches':
1615
- '*'
1716
'pull_request':
18-
1917
jobs:
2018
tests:
2119
'permissions':
@@ -49,7 +47,6 @@ jobs:
4947
with:
5048
token: ${{ secrets.CODECOV_TOKEN }}
5149
file: ./coverage.txt
52-
5350
build:
5451
needs:
5552
- tests
@@ -99,11 +96,10 @@ jobs:
9996
file: "build/dnsproxy-*.tar.gz;build/dnsproxy-*.zip"
10097
tags: true
10198
draft: false
102-
10399
notify:
104100
needs:
105101
- build
106-
if:
102+
if: |
107103
${{ always() &&
108104
(
109105
github.event_name == 'push' ||

.github/workflows/docker.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@
77
'permissions': {}
88
'env':
99
'GO_VERSION': '1.26.1'
10-
1110
'on':
1211
'push':
1312
'tags':
1413
- 'v*'
1514
# Builds from the master branch will be pushed with the `dev` tag.
1615
'branches':
1716
- 'master'
18-
1917
'jobs':
2018
'docker':
2119
'permissions':
@@ -67,16 +65,15 @@
6765
DOCKER_PUSH="1" \
6866
VERBOSE="1" \
6967
docker
70-
7168
'notify':
7269
'needs':
7370
- 'docker'
74-
'if':
71+
'if': |
7572
${{ always() &&
76-
(
77-
github.event_name == 'push' ||
78-
github.event.pull_request.head.repo.full_name == github.repository
79-
)
73+
(
74+
github.event_name == 'push' ||
75+
github.event.pull_request.head.repo.full_name == github.repository
76+
)
8077
}}
8178
'permissions':
8279
# Required by workflow-conclusion-action to check workflow status.

.github/workflows/lint.yaml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@
77
'permissions': {}
88
'env':
99
'GO_VERSION': '1.26.1'
10-
1110
'on':
1211
'push':
1312
'tags':
1413
- 'v*'
1514
'branches':
1615
- '*'
1716
'pull_request':
18-
1917
'jobs':
2018
'go-lint':
2119
'permissions':
@@ -35,22 +33,21 @@
3533
'go-version': '${{ env.GO_VERSION }}'
3634
- 'name': 'run-lint'
3735
'run': 'make go-deps go-lint'
38-
3936
'notify':
4037
'needs':
4138
# Secrets are not passed to workflows that are triggered by a pull request
4239
# from a fork.
4340
#
4441
# Use always() to signal to the runner that this job must run even if the
4542
# previous ones failed.
46-
'if':
43+
'if': |
4744
${{
48-
always() &&
49-
github.repository_owner == 'AdguardTeam' &&
50-
(
51-
github.event_name == 'push' ||
52-
github.event.pull_request.head.repo.full_name == github.repository
53-
)
45+
always() &&
46+
github.repository_owner == 'AdguardTeam' &&
47+
(
48+
github.event_name == 'push' ||
49+
github.event.pull_request.head.repo.full_name == github.repository
50+
)
5451
}}
5552
'permissions':
5653
# Required by workflow-conclusion-action to check workflow status.

0 commit comments

Comments
 (0)