Skip to content

Commit 1fa25a8

Browse files
authored
Merge pull request #1964 from dscho/fix-non-English-progit-downloads
Re-add non-English ProGit downloads
2 parents 99949ff + 3841f35 commit 1fa25a8

File tree

26 files changed

+88
-24
lines changed

26 files changed

+88
-24
lines changed

.github/workflows/update-book.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ jobs:
7171
with:
7272
bundler-cache: true
7373
- name: update book/${{ matrix.language.lang }}
74+
env:
75+
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7476
run: |
7577
# this seems to be needed to let `bundle exec` see `vendor/bundle/`
7678
{ bundle check || bundle install --frozen; } &&
@@ -85,6 +87,13 @@ jobs:
8587
8688
# commit it all
8789
git add -A external/book &&
90+
if ${{ inputs.force-rebuild == true && 'git diff-index --exit-code HEAD --' || 'false' }}
91+
then
92+
# Force the bundle to be non-empty
93+
git fetch --depth 2 origin ${{ github.ref_name }} &&
94+
git update-ref refs/remotes/origin/${{ github.ref_name }} HEAD^ &&
95+
exit 0
96+
fi &&
8897
git -c user.name=${{ github.actor }} \
8998
-c user.email=${{ github.actor }}@noreply.github.com \
9099
commit -m 'book: update ${{ matrix.language.lang }}' \

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ gem "rss"
88
gem "asciidoctor", "~> 2.0.0"
99
gem "nokogiri"
1010
gem "diffy"
11+
12+
gem "base64", "~> 0.2.0"

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ GEM
44
addressable (2.8.7)
55
public_suffix (>= 2.0.2, < 7.0)
66
asciidoctor (2.0.23)
7+
base64 (0.2.0)
78
diffy (3.4.3)
89
faraday (2.12.2)
910
faraday-net_http (>= 2.0, < 3.5)
@@ -58,6 +59,7 @@ PLATFORMS
5859

5960
DEPENDENCIES
6061
asciidoctor (~> 2.0.0)
62+
base64 (~> 0.2.0)
6163
diffy
6264
faraday-retry
6365
nokogiri
@@ -67,6 +69,7 @@ DEPENDENCIES
6769
CHECKSUMS
6870
addressable (2.8.7) sha256=462986537cf3735ab5f3c0f557f14155d778f4b43ea4f485a9deb9c8f7c58232
6971
asciidoctor (2.0.23) sha256=52208807f237dfa0ca29882f8b13d60b820496116ad191cf197ca56f2b7fddf3
72+
base64 (0.2.0) sha256=0f25e9b21a02a0cc0cea8ef92b2041035d39350946e8789c562b2d1a3da01507
7073
diffy (3.4.3) sha256=4264b9e7db00d1cd426fcd32e36565779163cedc2340a95b0e6f025e71f9aaa7
7174
faraday (2.12.2) sha256=157339c25c7b8bcb739f5cf1207cb0cefe8fa1c65027266bcbc34c90c84b9ad6
7275
faraday-net_http (3.4.0) sha256=a1f1e4cd6a2cf21599c8221595e27582d9936819977bbd4089a601f24c64e54a

external/book/content/book/az/v2/_index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
front_page: true
1010
repository_url: https://github.com/progit2-aze/progit2
1111
sha: 9f5e87d19b622e05fd9f7cc215bcd39c79d5995b
12+
ebook_pdf: https://github.com/progit2-aze/progit2/releases/download/2.1.167/progit_v2.1.167.pdf
13+
ebook_epub: https://github.com/progit2-aze/progit2/releases/download/2.1.167/progit_v2.1.167.epub
1214
page_title: Git - Book
1315
url: "/book/az/v2.html"
1416
aliases:

external/book/content/book/be/v2/_index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
front_page: true
1010
repository_url: https://github.com/progit/progit2-be
1111
sha: 5d7dee94e8f4f56fc28ef927e7435d869cd312ff
12+
ebook_pdf: https://github.com/progit/progit2-be/releases/download/2.1.2/progit.pdf
13+
ebook_epub: https://github.com/progit/progit2-be/releases/download/2.1.2/progit.epub
1214
page_title: Git - Book
1315
url: "/book/be/v2.html"
1416
aliases:

external/book/content/book/bg/v2/_index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
front_page: true
1010
repository_url: https://github.com/progit/progit2-bg
1111
sha: bad96055d9e17cb562781652a87df1de93ab2c9b
12+
ebook_pdf: https://github.com/progit/progit2-bg/releases/download/2.1.60/progit.pdf
13+
ebook_epub: https://github.com/progit/progit2-bg/releases/download/2.1.60/progit.epub
14+
ebook_mobi: https://github.com/progit/progit2-bg/releases/download/2.1.60/progit.mobi
1215
page_title: Git - Book
1316
url: "/book/bg/v2.html"
1417
aliases:

external/book/content/book/de/v2/_index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
front_page: true
1010
repository_url: https://github.com/progit/progit2-de
1111
sha: c4f0a32f55f41264c4c72aef9800b3bce306486e
12+
ebook_pdf: https://github.com/progit/progit2-de/releases/download/2.1.293/progit.pdf
13+
ebook_epub: https://github.com/progit/progit2-de/releases/download/2.1.293/progit.epub
1214
page_title: Git - Book
1315
url: "/book/de/v2.html"
1416
aliases:

external/book/content/book/en/v2/_index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
sha: 3404a4f5e0c1faab3e89ae93d48663413b31dd8d
1212
ebook_pdf: https://github.com/progit/progit2/releases/download/2.1.443/progit.pdf
1313
ebook_epub: https://github.com/progit/progit2/releases/download/2.1.443/progit.epub
14-
ebook_mobi: https://github.com/progit/progit2/releases/download/2.1.443/progit.mobi
1514
page_title: Git - Book
1615
url: "/book/en/v2.html"
1716
aliases:

external/book/content/book/es/v2/_index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
front_page: true
1010
repository_url: https://github.com/progit/progit2-es
1111
sha: 2264d131f4f6ca028ff4fe88ca60fc8384ee0c3c
12+
ebook_pdf: https://github.com/progit/progit2-es/releases/download/2.1.23/progit.pdf
13+
ebook_epub: https://github.com/progit/progit2-es/releases/download/2.1.23/progit.epub
1214
page_title: Git - Book
1315
url: "/book/es/v2.html"
1416
aliases:

external/book/content/book/fr/v2/_index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
front_page: true
1010
repository_url: https://github.com/progit/progit2-fr
1111
sha: be26909d7508e6b2754965e7e5a75d3e44b81dbc
12+
ebook_pdf: https://github.com/progit/progit2-fr/releases/download/2.1.77/progit.pdf
13+
ebook_epub: https://github.com/progit/progit2-fr/releases/download/2.1.77/progit.epub
1214
page_title: Git - Book
1315
url: "/book/fr/v2.html"
1416
aliases:

0 commit comments

Comments
 (0)