Skip to content

Commit 354905b

Browse files
committed
Merge remote-tracking branch 'remotes/origin/master' into develop
# Conflicts: # .github/workflows/discourse-plugin.yml # .github/workflows/lint.yml # .github/workflows/plugin-linting.yml # .github/workflows/plugin-tests.yml
2 parents fb56880 + 163a03f commit 354905b

File tree

7 files changed

+98
-9
lines changed

7 files changed

+98
-9
lines changed

.github/workflows/create-tag.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Create Tag
2+
3+
on:
4+
push:
5+
branches: [master]
6+
paths-ignore:
7+
- '.github/**'
8+
- '**/AUTHORS.md'
9+
- '**/LICENSE'
10+
- '**/README.md'
11+
12+
jobs:
13+
create-tag:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@v4
18+
- name: Get Info
19+
run: |
20+
echo "version=$(grep -Eo '[0-9]+(\.[0-9]+)+' CHANGELOG.md | head -n 1)" >> $GITHUB_OUTPUT
21+
id: info
22+
- name: Create Tag
23+
run: |
24+
git config user.name "$GITHUB_ACTOR"
25+
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
26+
git tag -a 'v${{ steps.info.outputs.version }}' -m 'Release/v${{ steps.info.outputs.version }}'
27+
git push origin 'v${{ steps.info.outputs.version }}'

.github/workflows/discourse-plugin.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Discourse Plugin
22

33
on:
4+
workflow_dispatch:
45
push:
5-
branches:
6-
- main
6+
branches: [master, develop]
77
pull_request:
88

99
jobs:

.github/workflows/licenses.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Licenses
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [master, develop]
7+
pull_request:
8+
branches: [master, develop]
9+
10+
jobs:
11+
licences:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v4
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v6
18+
with:
19+
node-version: 16
20+
cache: yarn
21+
- name: Yarn install
22+
run: yarn install
23+
- name: Set up ruby
24+
uses: ruby/setup-ruby@v1
25+
with:
26+
ruby-version: 2.7
27+
bundler-cache: true
28+
- name: Bundle Install
29+
run: bundle install
30+
- name: Check Licenses
31+
uses: ONLYOFFICE/check-licenses@v1
32+
with:
33+
project_license: Apache-2.0

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Lint
22

33
on:
4+
workflow_dispatch:
45
push:
5-
branches: [main, master, develop]
6+
branches: [master, develop]
67
pull_request:
7-
branches: [main, master, develop]
88

99
jobs:
1010
lint:
1111
runs-on: ubuntu-latest
12-
12+
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v4

.github/workflows/plugin-linting.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Linting
22

33
on:
4+
workflow_dispatch:
45
push:
5-
branches:
6-
- main
6+
branches: [master, develop]
77
pull_request:
88

99
concurrency:

.github/workflows/plugin-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Plugin Tests
22

33
on:
4+
workflow_dispatch:
45
push:
5-
branches:
6-
- main
6+
branches: [master, develop]
77
pull_request:
88

99
concurrency:

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repository
16+
uses: actions/checkout@v4
17+
- name: Get Info
18+
run: |
19+
echo "version=$(grep -Eo '[0-9]+(\.[0-9]+)+' CHANGELOG.md | head -n 1)" >> $GITHUB_OUTPUT
20+
id: info
21+
- name: Generate Changelog
22+
run: |
23+
awk 'BEGIN {found=0} /^## [0-9]/ {if (!found) {found=1; next} else exit} found {print}' CHANGELOG.md > RELEASE.md
24+
- name: Create Release
25+
uses: ncipollo/release-action@v1
26+
id: create_release
27+
with:
28+
bodyFile: RELEASE.md
29+
tag: v${{ steps.info.outputs.version }}

0 commit comments

Comments
 (0)