Skip to content

Commit 20395db

Browse files
committed
Merge branch '4.4_release' into 'MOODLE_400_STABLE'
Version bump 4.4 See merge request workplace/moodle-tool_certificate!186
2 parents f34d57c + 9962693 commit 20395db

File tree

12 files changed

+90
-20
lines changed

12 files changed

+90
-20
lines changed

.github/workflows/moodle-release.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#
2+
# Whenever a new tag starting with "v" is pushed, add the tagged version
3+
# to the Moodle Plugins directory at https://moodle.org/plugins
4+
#
5+
# revision: 2021070201
6+
#
7+
name: Releasing in the Plugins directory
8+
9+
on:
10+
push:
11+
tags:
12+
- v*
13+
14+
workflow_dispatch:
15+
inputs:
16+
tag:
17+
description: 'Tag to be released'
18+
required: true
19+
20+
defaults:
21+
run:
22+
shell: bash
23+
24+
jobs:
25+
release-at-moodle-org:
26+
runs-on: ubuntu-latest
27+
env:
28+
PLUGIN: tool_certificate
29+
CURL: curl -s
30+
ENDPOINT: https://moodle.org/webservice/rest/server.php
31+
TOKEN: ${{ secrets.MOODLE_ORG_TOKEN }}
32+
FUNCTION: local_plugins_add_version
33+
34+
steps:
35+
- name: Call the service function
36+
id: add-version
37+
run: |
38+
if [[ ! -z "${{ github.event.inputs.tag }}" ]]; then
39+
TAGNAME="${{ github.event.inputs.tag }}"
40+
elif [[ $GITHUB_REF = refs/tags/* ]]; then
41+
TAGNAME="${GITHUB_REF##*/}"
42+
fi
43+
if [[ -z "${TAGNAME}" ]]; then
44+
echo "No tag name has been provided!"
45+
exit 1
46+
fi
47+
ZIPURL="https://api.github.com/repos/${{ github.repository }}/zipball/${TAGNAME}"
48+
RESPONSE=$(${CURL} ${ENDPOINT} --data-urlencode "wstoken=${TOKEN}" \
49+
--data-urlencode "wsfunction=${FUNCTION}" \
50+
--data-urlencode "moodlewsrestformat=json" \
51+
--data-urlencode "frankenstyle=${PLUGIN}" \
52+
--data-urlencode "zipurl=${ZIPURL}" \
53+
--data-urlencode "vcssystem=git" \
54+
--data-urlencode "vcsrepositoryurl=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" \
55+
--data-urlencode "vcstag=${TAGNAME}" \
56+
--data-urlencode "changelogurl=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/commits/${TAGNAME}" \
57+
--data-urlencode "altdownloadurl=${ZIPURL}")
58+
echo "response=${RESPONSE}" >> $GITHUB_OUTPUT
59+
60+
- name: Evaluate the response
61+
id: evaluate-response
62+
env:
63+
RESPONSE: ${{ steps.add-version.outputs.response }}
64+
run: |
65+
jq <<< ${RESPONSE}
66+
jq --exit-status ".id" <<< ${RESPONSE} > /dev/null

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 4.4 - 2024-05-21
4+
### Added
5+
- Add cohort entity to issued certificates datasource
6+
37
## 4.3.4 - 2024-04-23
48
### Added
59
- Added a new issued certificate regenerated event.

element/border/version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
// This plugin is part of Moodle Workplace product.
2828
$plugin->component = 'certificateelement_border';
29-
$plugin->release = '4.3.4';
30-
$plugin->version = 2024042300;
29+
$plugin->release = '4.4';
30+
$plugin->version = 2024052100;
3131
$plugin->requires = 2022041900.00;
3232
$plugin->maturity = MATURITY_STABLE;

element/code/version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
// This plugin is part of Moodle Workplace product.
2828
$plugin->component = 'certificateelement_code';
29-
$plugin->release = '4.3.4';
30-
$plugin->version = 2024042300;
29+
$plugin->release = '4.4';
30+
$plugin->version = 2024052100;
3131
$plugin->requires = 2022041900.00;
3232
$plugin->maturity = MATURITY_STABLE;

element/date/version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
// This plugin is part of Moodle Workplace product.
2828
$plugin->component = 'certificateelement_date';
29-
$plugin->release = '4.3.4';
30-
$plugin->version = 2024042300;
29+
$plugin->release = '4.4';
30+
$plugin->version = 2024052100;
3131
$plugin->requires = 2022041900.00;
3232
$plugin->maturity = MATURITY_STABLE;

element/digitalsignature/version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
// This plugin is part of Moodle Workplace product.
2828
$plugin->component = 'certificateelement_digitalsignature';
29-
$plugin->release = '4.3.4';
30-
$plugin->version = 2024042300;
29+
$plugin->release = '4.4';
30+
$plugin->version = 2024052100;
3131
$plugin->requires = 2022041900.00;
3232
$plugin->maturity = MATURITY_STABLE;

element/image/version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
// This plugin is part of Moodle Workplace product.
2828
$plugin->component = 'certificateelement_image';
29-
$plugin->release = '4.3.4';
30-
$plugin->version = 2024042300;
29+
$plugin->release = '4.4';
30+
$plugin->version = 2024052100;
3131
$plugin->requires = 2022041900.00;
3232
$plugin->maturity = MATURITY_STABLE;

element/program/version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
// This plugin is part of Moodle Workplace product.
2828
$plugin->component = 'certificateelement_program';
29-
$plugin->release = '4.3.4';
30-
$plugin->version = 2024042300;
29+
$plugin->release = '4.4';
30+
$plugin->version = 2024052100;
3131
$plugin->requires = 2022041900.00;
3232
$plugin->maturity = MATURITY_STABLE;

element/text/version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
// This plugin is part of Moodle Workplace product.
2828
$plugin->component = 'certificateelement_text';
29-
$plugin->release = '4.3.4';
30-
$plugin->version = 2024042300;
29+
$plugin->release = '4.4';
30+
$plugin->version = 2024052100;
3131
$plugin->requires = 2022041900.00;
3232
$plugin->maturity = MATURITY_STABLE;

element/userfield/version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
// This plugin is part of Moodle Workplace product.
2828
$plugin->component = 'certificateelement_userfield';
29-
$plugin->release = '4.3.4';
30-
$plugin->version = 2024042300;
29+
$plugin->release = '4.4';
30+
$plugin->version = 2024052100;
3131
$plugin->requires = 2022041900.00;
3232
$plugin->maturity = MATURITY_STABLE;

0 commit comments

Comments
 (0)