psl-update #38785
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: psl-update | |
| on: | |
| schedule: | |
| # Run every day | |
| - cron: '15 1 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| zcrypto-psl-update: | |
| name: Check for publicsuffix-go data updates | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '>=1.24' | |
| - name: Set current date | |
| id: get-date | |
| run: echo "::set-output name=now::$(date +'%Y-%m-%dT%H:%M:%S %Z')" | |
| - name: Update publicsuffix-go | |
| run: go get -u github.com/weppos/publicsuffix-go@main | |
| - name: Run go mod tidy | |
| run: go mod tidy | |
| - name: Build | |
| run: go build -v ./... | |
| - name: Test | |
| run: go test -v ./... | |
| - name: Create pull-request | |
| id: cpr | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| commit-message: "deps: update publicsuffix-go for ${{ steps.get-date.outputs.now }}" | |
| title: "deps: update weppos/publicsuffix-go for ${{ steps.get-date.outputs.now }}" | |
| body: "ZCrypto dependency update from `go get -u github.com/weppos/publicsuffix-go@master` on ${{ steps.get-date.outputs.now }}." | |
| committer: "GitHub <noreply@github.com>" | |
| author: "GitHub <noreply@github.com>" | |
| labels: psl-update | |
| branch: zcrypto-psl-update | |
| delete-branch: true | |
| - name: Check outputs | |
| run: | | |
| echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | |
| echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |