Skip to content

Bump cacert.pem

Bump cacert.pem #390

Workflow file for this run

name: Bump cacert.pem
on:
workflow_dispatch:
schedule:
# Run daily
- cron: "0 0 * * *"
permissions:
contents: read
jobs:
bump:
if: github.repository_owner == 'certifi'
runs-on: ubuntu-latest
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: make update
- name: Update date
id: update-date
run: |
if ! git diff --quiet certifi/cacert.pem ; then
DATE=$(date +"%Y.%m.%d")
sed -E -i "s/__version__ = .*/__version__ = \"${DATE}\"/" certifi/__init__.py
echo "DATE=${DATE}" >> $GITHUB_OUTPUT
fi
- name: Create Pull Request
uses: peter-evans/create-pull-request@8867c4aba1b742c39f8d0ba35429c2dfa4b6cb20 # v7.0.1
with:
commit-message: "${{ steps.update-date.outputs.DATE }}"
title: "${{ steps.update-date.outputs.DATE }}"
token: ${{ secrets.GITHUB_TOKEN }}
if: steps.update-date.outputs.DATE