forked from joomla/joomla-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.58 KB
/
cacert-update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Cron to update Mozilla CA cert files in the Joomla Core
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
# Runs on the first day of every month at 03:00
- cron: '0 3 1 * *'
permissions:
contents: read
jobs:
build:
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
if: (github.event_name == 'schedule' && github.repository == 'joomla/joomla-cms') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: 3.10-dev
- name: Download the latest CA cert file
uses: wei/wget@v1
with:
args: -O libraries/src/Http/Transport/cacert.pem https://curl.se/ca/cacert.pem
- name: Copy the CA cert file to the FOF repo
run: cp "libraries/src/Http/Transport/cacert.pem" "libraries/fof/download/adapter/cacert.pem"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
id: cpr
with:
branch: mozilla_ca_update
commit-message: Update CA cert file
title: 'Automated CA cert file update'
body: |
Update report
- Cron to update Mozilla CA cert files in the Joomla Core
- name: Log resulting Pull Request
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"