-
Notifications
You must be signed in to change notification settings - Fork 3
79 lines (67 loc) · 2.49 KB
/
autoupdate-locale-slackbuilds-15.0.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
name: "Update locale slackbuilds - 15.0"
on:
push:
branches:
- "15.0"
workflow_dispatch:
concurrency: locale-pr-generator
jobs:
changes:
runs-on: ubuntu-24.04
permissions:
contents: read
outputs:
locales: ${{ steps.filter.outputs.locales }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
show-progress: false
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
locales:
- '.github/scripts/genlocaleslackbuilds'
update-locale-slackbuilds:
timeout-minutes: 10
name: Update locale slackbuilds.
runs-on: ubuntu-24.04
permissions:
contents: write
pull-requests: write
needs: [changes]
if: ${{ needs.changes.outputs.locales == 'true' || github.event_name == 'workflow_dispatch' }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
show-progress: false
- name: Set environment variables
run: |
grep ^..VERSION= .github/scripts/genlocaleslackbuilds >> "$GITHUB_ENV"
- name: Install dependencies
run: |
sudo apt-get install lftp
- name: Generate updates
run: |
./.github/scripts/genlocaleslackbuilds network
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add network/mozilla-firefox-* || true
git commit -m 'network/mozilla-firefox-l10n-*: Updated for version ${{ env.FFVERSION }}.' || true
git add network/mozilla-thunderbird-* || true
git commit -m 'network/mozilla-thunderbird-l10n-*: Updated for version ${{ env.TBVERSION }}.' || true
git add network/seamonkey-* || true
git commit -m 'network/seamonkey-l10n-*: Updated for version ${{ env.SMVERSION }}.' || true
- name: Create Pull Request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: "[auto] Update locale slackbuilds based on latest ChangeLog.txt."
branch: autoupdate-locale-slackbuilds
body: |
Locale updates:
- Firefox: ${{ env.FFVERSION }}
- Thunderbird: ${{ env.TBVERSION }}
- Seamonkey: ${{ env.SMVERSION }}