Update Mozilla Included CA Certificate List #227
This file contains 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: Update Mozilla Included CA Certificate List | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: "0 0 * * 0" | |
jobs: | |
update: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
- name: Update Mozilla Included CA Certificate List | |
run: go generate . | |
- name: Commit changes | |
id: commit_changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: Lucas Bremgartner | |
author_email: [email protected] | |
message: 'Auto Update Mozilla Included CA Certificate List' | |
add: 'embedded/data.go' | |
- name: Bump version and push tag | |
if: ${{ steps.commit_changes.outputs.committed == 'true' && steps.commit_changes.outputs.pushed == 'true' }} | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
commit_sha: ${{ steps.commit_changes.outputs.commit_long_sha }} |