Debian Codegraph @

.github/workflows/psl-update.yml

raw
1 name: psl-update
2 on:
3 schedule:
4 # Run every hour, at the 15 minute mark. E.g.
5 # 2020-11-29 00:15:00 UTC, 2020-11-29 01:15:00 UTC, 2020-11-29 02:15:00 UTC
6 - cron: '15 * * * *'
7 jobs:
8 zcrypto-psl-update:
9 name: Check for publicsuffix-go data updates
10 runs-on: ubuntu-latest
11 steps:
12
13 - name: Check out code
14 uses: actions/checkout@v2
15
16 - name: Set up Go
17 uses: actions/setup-go@v2
18 with:
19 go-version: ^1.16
20
21 - name: Set current date
22 id: get-date
23 run: echo "::set-output name=now::$(date +'%Y-%m-%dT%H:%M:%S %Z')"
24
25 - name: Update publicsuffix-go
26 run: go get -u github.com/weppos/publicsuffix-go@main
27
28 - name: Run go mod tidy
29 run: go mod tidy
30
31 - name: Build
32 run: go build -v ./...
33
34 - name: Test
35 run: go test -v ./...
36
37 - name: Create pull-request
38 id: cpr
39 uses: peter-evans/create-pull-request@v3
40 with:
41 commit-message: "deps: update publicsuffix-go for ${{ steps.get-date.outputs.now }}"
42 title: "deps: update weppos/publicsuffix-go for ${{ steps.get-date.outputs.now }}"
43 body: "ZCrypto dependency update from `go get -u github.com/weppos/publicsuffix-go@master` on ${{ steps.get-date.outputs.now }}."
44 committer: "GitHub <[email protected]>"
45 author: "GitHub <[email protected]>"
46 labels: psl-update
47 branch: zcrypto-psl-update
48 delete-branch: true
49
50 - name: Check outputs
51 run: |
52 echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
53 echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"