github.com/breml/rootcerts@v0.2.16/.github/workflows/update.yml (about) 1 name: Update Mozilla Included CA Certificate List 2 3 on: 4 push: 5 branches: [ master ] 6 pull_request: 7 branches: [ master ] 8 schedule: 9 - cron: "0 0 * * 0" 10 11 jobs: 12 update: 13 runs-on: ubuntu-20.04 14 steps: 15 - name: Checkout repository 16 uses: actions/checkout@v2 17 18 - name: Setup Go 19 uses: actions/setup-go@v2 20 21 - name: Update Mozilla Included CA Certificate List 22 run: go generate . 23 24 - name: Commit changes 25 id: commit_changes 26 uses: EndBug/add-and-commit@v9 27 with: 28 author_name: Lucas Bremgartner 29 author_email: lucas@bremis.ch 30 message: 'Auto Update Mozilla Included CA Certificate List' 31 add: 'embedded/data.go' 32 33 - name: Bump version and push tag 34 if: ${{ steps.commit_changes.outputs.committed == 'true' && steps.commit_changes.outputs.pushed == 'true' }} 35 uses: mathieudutour/github-tag-action@v6.0 36 with: 37 github_token: ${{ secrets.GITHUB_TOKEN }} 38 commit_sha: ${{ steps.commit_changes.outputs.commit_long_sha }}