Skip to content

Commit

Permalink
version update by tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
jozefbaranec committed Feb 7, 2025
1 parent a4a3d99 commit b368cf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"version": "v0.0.0",
"actions": [
{
"name": "Detect Language",
"desc": "Automatically detects the language of a PDF and updates its metadata",
"version": "1.0.0",
"version": "v0.0.0",
"icon": "language",
"category": "Metadata",
"program": "docker run --platform linux/amd64 -v ${working_directory}:/data -w /data --rm pdfix/detect-language:latest --name \"${license_name}\" --key \"${license_key}\" lang-detect -i \"/data/${input_pdf}\" -o \"/data/${output_pdf}\"",
Expand All @@ -29,7 +30,7 @@
{
"name": "Detect Language to TXT",
"desc": "Automatically detects the language of a PDF and saves the detected language code to a TXT file",
"version": "1.0.0",
"version": "v0.0.0",
"icon": "language_txt",
"category": "Metadata",
"program": "docker run --platform linux/amd64 -v ${working_directory}:/data -w /data --rm pdfix/detect-language:latest --name \"${license_name}\" --key \"${license_key}\" lang-detect -i \"/data/${input_pdf}\" -o \"/data/${output_txt}\"",
Expand Down
4 changes: 3 additions & 1 deletion update_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ if [ ! -f "config.json" ]; then
exit 1
fi

# Replace "v0.0.0" placeholder with the provided argument in config.json
sed -i "s|v0.0.0|$1|g" config.json
# Replace "latest" with the provided argument in config.json
sed -i "s/latest/$1/g" config.json
sed -i "s|latest|$1|g" config.json

echo "Replaced all occurrences of 'latest' with '$1' in config.json."

0 comments on commit b368cf6

Please sign in to comment.