File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Licensed to the Apache Software Foundation (ASF) under one
2+ # or more contributor license agreements. See the NOTICE file
3+ # distributed with this work for additional information
4+ # regarding copyright ownership. The ASF licenses this file
5+ # to you under the Apache License, Version 2.0 (the
6+ # "License"); you may not use this file except in compliance
7+ # with the License. You may obtain a copy of the License at
8+ #
9+ # http://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # Unless required by applicable law or agreed to in writing,
12+ # software distributed under the License is distributed on an
13+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+ # KIND, either express or implied. See the License for the
15+ # specific language governing permissions and limitations
16+ # under the License.
17+
18+ name : contrib
19+
20+ on :
21+ pull_requests :
22+ branches :
23+ - " main"
24+ types : [closed]
25+
26+ permissions :
27+ contents : write
28+
29+ jobs :
30+ goreleaser :
31+ if : ${{ github.event.pull_request.merged }}
32+ runs-on : ubuntu-latest
33+ steps :
34+ - name : Checkout
35+ uses : actions/checkout@v4
36+ - name : Check Dependencies' License
37+ uses : apache/skywalking-eyes/dependency@main # always prefer to use a revision instead of `main`.
38+ - name : Set up Go
39+ uses : actions/setup-go@v5
40+ with :
41+ go-version : ' >=1.22.5'
42+ - name : Run Tests
43+ run : |
44+ ls -l
45+ sudo sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
46+ task install
47+ source ~/.bashrc
48+ ops -version
49+ task tests
50+ - name : Run GoReleaser
51+ uses : goreleaser/goreleaser-action@v6
52+ with :
53+ distribution : goreleaser
54+ version : ' ~> v2'
55+ args : release --clean
56+ env :
57+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments