Skip to content

Commit 67de0f9

Browse files
committed
Исправлена ошибка генерации списка участников
Добавлено сохранение файла списка участников после сборки
1 parent f69a8d5 commit 67de0f9

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.github/workflows/pr_build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13+
- name: Install Utils
14+
run: sudo apt-get install -y bsdmainutils
15+
1316
- uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
1419

1520
- name: Set up Ruby
1621
uses: ruby/setup-ruby@v1
@@ -20,3 +25,10 @@ jobs:
2025

2126
- name: Build Book
2227
run: bundle exec rake book:build
28+
29+
- name: 'Upload Artifact'
30+
uses: actions/upload-artifact@v3
31+
with:
32+
name: contributors.txt
33+
path: book/contributors.txt
34+
retention-days: 5

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
release:
1111
runs-on: ubuntu-latest
1212
steps:
13+
- name: Install Utils
14+
run: sudo apt-get install -y bsdmainutils
15+
1316
- uses: actions/checkout@v3
1417
with:
1518
fetch-depth: 0

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace :book do
1010

1111
def generate_contributors_list(column_size)
1212
# Generating preformatted contributors list...
13-
`git shortlog -s | grep -v -E "(Straub|Chacon|dependabot)" | cut -f 2- | column -c #{column_size} > book/contributors.txt`
13+
`git shortlog -s HEAD | grep -v -E "(Straub|Chacon|dependabot)" | cut -f 2- | column -c #{column_size} > book/contributors.txt`
1414
end
1515

1616
def download_locale(locale_file)

0 commit comments

Comments
 (0)