Update Let's Encrypt certificate #27
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: Update Let's Encrypt certificate | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 1 * *' | |
jobs: | |
update_certificate: | |
runs-on: ubuntu-latest | |
name: Update Let's Encrypt certificate | |
steps: | |
- name: Checkout to certificates | |
uses: actions/checkout@v3 | |
with: | |
repository: hazelcast/private-test-artifacts | |
path: certs | |
ref: data | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Extract the certificate | |
working-directory: certs | |
run: | | |
unzip certs.jar | |
- name: Checkout to client | |
uses: actions/checkout@v3 | |
with: | |
repository: hazelcast/hazelcast-python-client | |
path: client | |
ref: master | |
- name: Copy updated certificate | |
run: | | |
cp $GITHUB_WORKSPACE/certs/com/hazelcast/nio/ssl/letsencrypt.jks $GITHUB_WORKSPACE/client/tests/integration/backward_compatible/ssl_tests/keystore.jks | |
- name: Commit changes | |
working-directory: client | |
run: | | |
git config --global user.name 'devOpsHazelcast' | |
git config --global user.email '[email protected]' | |
git add tests/integration/backward_compatible/ssl_tests/keystore.jks | |
git commit -m "Update Let's Encrypt Certificate" | |
git push | |
env: | |
GH_TOKEN: ${{ secrets.PAT }} |