File tree 7 files changed +75
-3
lines changed
7 files changed +75
-3
lines changed Original file line number Diff line number Diff line change
1
+ # Test github actions with act
2
+
3
+ ``` bash
4
+ act pull_request --container-architecture linux/arm64 -e .github/tests/pull-request.json -j ch
5
+ eck-release-pr -P ubuntu-latest=catthehacker/ubuntu:act-latest
6
+ ```
Original file line number Diff line number Diff line change
1
+ {
2
+ "pull_request" : {
3
+ "head" : {
4
+ "ref" : " release/1.2.3"
5
+ },
6
+ "base" : {
7
+ "ref" : " master"
8
+ }
9
+ }
10
+ }
Original file line number Diff line number Diff line change
1
+ name : Release PR Checks
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ pull_request :
6
+ branches :
7
+ - master
8
+
9
+ jobs :
10
+ check-release-pr :
11
+ if : startsWith(github.head_ref, 'release/')
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - name : Checkout code
16
+ uses : actions/checkout@v3
17
+ with :
18
+ fetch-depth : 0
19
+
20
+ - name : Check for release-notes updates
21
+ run : |
22
+ if ! git diff --exit-code origin/develop -- public/docs/release-notes.md; then
23
+ echo "Release notes updated."
24
+ else
25
+ echo "Error: Release notes not updated in the PR."
26
+ exit 1
27
+ fi
28
+
29
+ - name : Compare package.json version with master
30
+ run : |
31
+ git fetch origin master
32
+ MASTER_PACKAGE_VERSION=$(git show origin/master:package.json | jq -r '.version')
33
+ BRANCH_PACKAGE_VERSION=$(jq -r '.version' package.json)
34
+
35
+ if [ "$BRANCH_PACKAGE_VERSION" != "$MASTER_PACKAGE_VERSION" ]; then
36
+ echo "Version bumped in package.json."
37
+ else
38
+ echo "Error: Version in package.json has not been bumped."
39
+ exit 1
40
+ fi
41
+
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codimd" ,
3
- "version" : " 2.5.1 " ,
3
+ "version" : " 2.5.3 " ,
4
4
"description" : " Realtime collaborative markdown notes on all platforms." ,
5
5
"keywords" : [
6
6
" Collaborative" ,
Original file line number Diff line number Diff line change 1
1
Release Notes
2
2
===
3
3
4
+ <i class =" fa fa-tag " ></i > 2.5.3 <i class =" fa fa-clock-o " ></i > 2024-01-08
5
+ ---
6
+
7
+ [ Check out the complete release note] [ v2_5_3 ] . Thank you CodiMD community and all our contributors. ❤️
8
+
9
+ [ v2_5_3 ] : https://hackmd.io/@codimd/release-notes/%2F%40codimd%2Fv2_5_3
10
+
11
+ It's a minor fix release that bumps the version number in ` package.json `
12
+
13
+ ## Enhancements
14
+
15
+ - Add ` codeium-chrome ` extension support [ #1851 ] ( https://github.com/hackmdio/codimd/pull/1851 )
16
+ - Add ` check-release ` GitHub action workflow that prevents us from forgetting to update the ` package.json ` during releases again [ #1852 ] ( https://github.com/hackmdio/codimd/pull/1852 )
17
+
4
18
<i class =" fa fa-tag " ></i > 2.5.2 <i class =" fa fa-clock-o " ></i > 2024-01-05
5
19
---
6
20
Original file line number Diff line number Diff line change 4
4
<meta name =" apple-mobile-web-app-capable" content =" yes" >
5
5
<meta name =" apple-mobile-web-app-status-bar-style" content =" black" >
6
6
<meta name =" mobile-web-app-capable" content =" yes" >
7
+ <meta name =" codeium:type" content =" codemirror5" >
7
8
<title ><%= title %> </title >
8
9
<link rel =" icon" type =" image/png" href =" <%- serverURL %>/favicon.png" >
9
10
<link rel =" apple-touch-icon" href =" <%- serverURL %>/apple-touch-icon.png" >
You can’t perform that action at this time.
0 commit comments