Skip to content

Commit

Permalink
cam18603 - correction orthographe mot système
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasInlibro committed Jun 15, 2023
2 parents e0cc2bd + 443b9b6 commit ebfaf61
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 2 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/generate_kpz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Generate KPZ file

# Controls when the workflow will run
on:
# Triggers the workflow on new tags events but only for the "master" branch
push:
tags:
- '*'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
release:
name: Build & Release
runs-on: ubuntu-latest
permissions: write-all
if: startsWith(github.ref, 'refs/tags/v')
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3

- name: Parse out and store the GitHub repository name
id: myvars
run: |
IFS='/' read -r -a parts <<< "$GITHUB_REPOSITORY"
GITHUB_REPO="${parts[1]}"
echo "github_repo=$GITHUB_REPO" >> $GITHUB_OUTPUT
echo "GITHUB REPO: $GITHUB_REPO"
TAG_VERSION="${GITHUB_REF##*/}"
echo "TAG VERSION: $TAG_VERSION"
TAG_VERSION="${TAG_VERSION:1}"
echo "TAG VERSION 2: $TAG_VERSION"
echo "tag_version=$TAG_VERSION" >> $GITHUB_OUTPUT
- name: Dump myvars outputs
env:
GITHUB_CONTEXT: ${{ toJson(steps.myvars.outputs) }}
run: echo "$GITHUB_CONTEXT"

- name: Build Koha Plugin kpz artifact
id: kpz
uses: "bywatersolutions/github-action-koha-plugin-create-kpz@master"
with:
release-version: ${{ steps.myvars.outputs.tag_version }}
release-name: ${{ steps.myvars.outputs.github_repo }}
minimum-version: "17.05"
plugin-module: "Koha/Plugin/PDFtoCover.pm"

- name: See if kpz was created
run: |
echo "FILENAME: ${{ steps.kpz.outputs.filename }}"
ls -alh
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ steps.kpz.outputs.filename }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions Koha/Plugin/PDFtoCover.pm
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ our $metadata = {
author => 'Mehdi Hamidi, Bouzid Fergani, Arthur Bousquet, The Minh Luong',
description => 'Creates cover images for documents missing one',
date_authored => '2016-06-08',
date_updated => '2022-11-18',
date_updated => '2023-06-15',
minimum_version => '17.05',
version => $VERSION,
};
Expand Down Expand Up @@ -302,7 +302,7 @@ sub intranet_catalog_biblio_enhancements_toolbar_button { # hook koha
} else {
my $title = "You must activate the LocalCoverImages system preference to generate the cover image";
if ($lang eq "fr-CA" || $lang eq "fr") {
$title = "Vous devez activer la pr&eacute;f&eacute;rence syst&ecirc;me LocalCoverImages pour g&eacute;n&eacute;rer l'image de couverture";
$title = "Vous devez activer la pr&eacute;f&eacute;rence syst&egrave;me LocalCoverImages pour g&eacute;n&eacute;rer l'image de couverture";
}

$button .= "<button type='button' class='btn btn-default' title=\"$title\" disabled><i class='fa fa-exclamation-triangle'></i>&nbsp;$textbutton</button>";
Expand Down

0 comments on commit ebfaf61

Please sign in to comment.