Skip to content

Commit

Permalink
Исправлена ошибка генерации списка участников
Browse files Browse the repository at this point in the history
Добавлено сохранение файла списка участников после сборки
  • Loading branch information
Morganov committed Feb 4, 2023
1 parent f69a8d5 commit 67de0f9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/pr_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Utils
run: sudo apt-get install -y bsdmainutils

- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand All @@ -20,3 +25,10 @@ jobs:

- name: Build Book
run: bundle exec rake book:build

- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: contributors.txt
path: book/contributors.txt
retention-days: 5
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Install Utils
run: sudo apt-get install -y bsdmainutils

- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace :book do

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

def download_locale(locale_file)
Expand Down

0 comments on commit 67de0f9

Please sign in to comment.