Skip to content

Commit

Permalink
fix activemq
Browse files Browse the repository at this point in the history
  • Loading branch information
chendelin1982 authored Dec 6, 2023
1 parent ad50fff commit b1ad6dc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ jobs:
run: |
pip install jinja2-cli
git diff --name-only HEAD^ HEAD
echo "1"
echo "APP_LISTS=$(git diff --name-only HEAD^ HEAD -- 'apps/*/variables.json' | awk -F/ '{print $2}' | tr '\n' ',' | sed 's/,$//')" >> $GITHUB_ENV
echo "2"
echo "APP_LISTS_ALL=$(ls -d apps/*/ | cut -f2 -d'/' | tr '\n' ',' | sed 's/,$//')" >> $GITHUB_ENV
echo "3"
git diff --name-only HEAD^ HEAD | grep 'template/README.jinja2' && echo "TPL_README=changed" >> $GITHUB_ENV
echo "4"
git diff --name-only HEAD^ HEAD | grep 'template/variables.json' && echo "TPL_VARS=changed" >> $GITHUB_ENV
- name: Update readme when app's variables.json changed
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@master
name: Check out code

- name: Get changed apps list and Update translation.json
- name: Update translation.json
run: |
echo "start to update translation.json"
cd i18n
Expand All @@ -35,18 +35,20 @@ jobs:
matrix:
repository: ['Websoft9/plugin-appstore', 'Websoft9/plugin-myapps']
steps:
- name: Checkout and update language files
- name: Checkout
uses: actions/checkout@v2
with:
repository: ${{ matrix.repository }}
ref: main
- name: update languages files

- name: Update languages files
run: |
cd public
wget https://raw.githubusercontent.com/Websoft9/docker-library/main/i18n/translation.json
wget https://raw.githubusercontent.com/Websoft9/docker-library/main/i18n/pr.py
python3 pr.py translation.json po.en_US.js po.zh_CN.js
rm -rf pr.py translation.json
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
Expand Down
8 changes: 7 additions & 1 deletion apps/activemq/variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"release": true,
"fork_url": "https://github.com/apache/activemq-artemis/tree/main/artemis-docker",
"edition": [
{
"dist": "community",
"version": [
"5.18.2-jre17-rockylinux8"
]
},
{
"dist": "classic",
"version": [
Expand All @@ -20,7 +26,7 @@
"requirements": {
"cpu": "1",
"memory": "1",
"disk": "2",
"disk": "1",
"url": "https://github.com/apache/activemq-artemis"
}
}

0 comments on commit b1ad6dc

Please sign in to comment.