Skip to content

Commit 8f8cfc8

Browse files
authored
Merge pull request #1130 from ignotus666/po4a-hash
2 parents a9e4ffa + ad1c3c0 commit 8f8cfc8

5 files changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/add-lang.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
fi
3535
3636
# Check out repo:
37-
- uses: actions/checkout@v4
37+
- uses: actions/checkout@v6
3838
with:
3939
ref: next-release
4040

@@ -51,11 +51,11 @@ jobs:
5151
# Check po4a cache. If CACHE_HIT: true, retrieve the cache.
5252
# If not, install po4a and its dependencies and copy them all to a folder (~/po4a/) to be cached:
5353
- name: Check for po4a cache
54-
uses: actions/cache@v4
54+
uses: actions/cache@v5
5555
id: cache-po4a
5656
with:
5757
path: "~/po4a"
58-
key: ${{ runner.os }}-po4a-0.68
58+
key: ${{ runner.os }}-po4a-${{ hashFiles('_po4a-tools/po4a-cache.sh') }}
5959
- name: Install/retrieve po4a from cache
6060
env:
6161
CACHE_HIT: ${{ steps.cache-po4a.outputs.cache-hit }}
@@ -67,15 +67,15 @@ jobs:
6767

6868
# Push changes to 'next-release':
6969
- name: Push changes to repo
70-
uses: EndBug/add-and-commit@v9
70+
uses: EndBug/add-and-commit@v10
7171
with:
7272
branch: next-release
7373
default_author: github_actions
7474
message: 'AUTO: Add new language: ${{ env.lang_code }}: ${{ env.full_lang }} #${{ env.issue_num }}'
7575

7676
# Add comment to issue informing of the creation of the language files:
7777
- name: Add comment to issue
78-
uses: peter-evans/create-or-update-comment@v4
78+
uses: peter-evans/create-or-update-comment@v5
7979
with:
8080
issue-number: ${{ env.issue_num }}
8181
body: |

.github/workflows/jekyll.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
contents: write
1414
runs-on: ubuntu-22.04
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1717

1818
# Paths changes filter. Detects if there's been a change to any files defined in the filter:
19-
- uses: dorny/paths-filter@v3
19+
- uses: dorny/paths-filter@v4
2020
id: filter
2121
with:
2222
base: ${{ github.ref }}
@@ -26,11 +26,11 @@ jobs:
2626
2727
# Retrieve po4a installation cache or create it if not found:
2828
- name: Check for po4a cache
29-
uses: actions/cache@v4
29+
uses: actions/cache@v5
3030
id: cache-po4a
3131
with:
3232
path: "~/po4a"
33-
key: ${{ runner.os }}-po4a-0.68
33+
key: ${{ runner.os }}-po4a-${{ hashFiles('_po4a-tools/po4a-cache.sh') }}
3434
- name: Install or retrieve po4a from cache
3535
env:
3636
CACHE_HIT: ${{steps.cache-po4a.outputs.cache-hit}}
@@ -46,7 +46,7 @@ jobs:
4646
# This step only runs if a PR is merged:
4747
- name: Push changes to repo if action triggered on:push and .po files need updating
4848
if: ${{ ( github.event_name == 'push' && steps.filter.outputs.src_files_changed == 'true' ) || ( github.event_name == 'workflow_dispatch' && steps.filter.outputs.src_files_changed == 'true' ) }}
49-
uses: EndBug/add-and-commit@v9
49+
uses: EndBug/add-and-commit@v10
5050
with:
5151
default_author: github_actions
5252
message: 'AUTO: Updated .po files'
@@ -66,7 +66,7 @@ jobs:
6666
- name: Zip Website
6767
if: ${{ github.event_name == 'pull_request' }}
6868
run: zip -r ${{ github.workspace }}/website.zip _site/*
69-
- uses: actions/upload-artifact@v4
69+
- uses: actions/upload-artifact@v7
7070
name: Upload Website
7171
if: ${{ github.event_name == 'pull_request' }}
7272
with:

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
contents: write
1010
runs-on: ubuntu-22.04
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v6
1313

1414
# Retrieve po4a installation cache or create it if not found:
1515
- name: Check for po4a cache
16-
uses: actions/cache@v3
16+
uses: actions/cache@v5
1717
id: cache-po4a
1818
with:
1919
path: "~/po4a"
20-
key: ${{ runner.os }}-po4a-0.68
20+
key: ${{ runner.os }}-po4a-${{ hashFiles('_po4a-tools/po4a-cache.sh') }}
2121
- name: Install or retrieve po4a from cache
2222
env:
2323
CACHE_HIT: ${{steps.cache-po4a.outputs.cache-hit}}
@@ -26,7 +26,7 @@ jobs:
2626
run: ./_po4a-tools/po4a-cache.sh
2727

2828
# Paths changes filter. If there's been a change to any files defined in the filter, the step (update .po files) runs:
29-
- uses: dorny/paths-filter@v3
29+
- uses: dorny/paths-filter@v4
3030
id: filter
3131
with:
3232
base: ${{ github.ref }}
@@ -40,7 +40,7 @@ jobs:
4040
# This step only runs if a PR is merged:
4141
- name: Push changes to repo if action triggered on:push and .po files need updating
4242
if: ${{ steps.filter.outputs.src_files_changed == 'true' }}
43-
uses: EndBug/add-and-commit@v9
43+
uses: EndBug/add-and-commit@v10
4444
with:
4545
default_author: github_actions
4646
message: 'AUTO: Update .po files'
@@ -109,9 +109,9 @@ jobs:
109109
contents: write
110110
runs-on: ubuntu-22.04
111111
steps:
112-
- uses: actions/checkout@v4
112+
- uses: actions/checkout@v6
113113
- name: ${{ github.sha }} update from release
114-
uses: devmasx/merge-branch@v1.3.1
114+
uses: devmasx/merge-branch@v1.4.0
115115
with:
116116
type: now
117117
from_branch: release

_po4a-tools/po4a-cache.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [[ "$CACHE_HIT" == 'true' ]] ; then
77
sudo cp --force --recursive ~/po4a/* /
88
else
99
sudo apt install -yq gettext libsgmls-perl libyaml-tiny-perl opensp libsyntax-keyword-try-perl libxs-parse-keyword-perl
10-
wget -O po4a.deb https://github.com/jamulussoftware/assets/raw/main/po4a/po4a_0.68.deb
10+
wget -O po4a.deb https://github.com/jamulussoftware/assets/raw/main/po4a/po4a_0.75.deb
1111
sudo dpkg -i po4a.deb
1212

1313
if [ -f po4a.deb ] ; then

_po4a-tools/po4a-update-templates.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# This script updates/creates .po files for every language
4-
# po4a >= 0.63 is required, see https://github.com/mquinson/po4a/releases
4+
# po4a >= 0.68 is required, see https://github.com/mquinson/po4a/releases
55
# You can set the following variables:
66
# SRC_DIR: directory for the original documents in English. Files in sub-directories within SRC_DIR are also detected.
77
# PO_DIR: directory where the .po files are stored

0 commit comments

Comments
 (0)