Skip to content

Commit

Permalink
#7 21
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 15, 2024
1 parent 129838a commit 7df0094
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 40 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN gem install \
faraday-retry:2.2.1 \
rubocop:1.63.5

RUN gem install judges:0.0.20
RUN gem install judges:0.0.21

WORKDIR /home
COPY entry.sh /home
Expand Down
31 changes: 24 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,35 @@ jobs:
zerocracy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: zerocracy/[email protected]
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: recent.fb
key: zerocracy
restore-keys: zerocracy
- uses: zerocracy/judges-action@master
with:
options: |
github_token=${{ secrets.GITHUB_TOKEN }}
github_repositories=yegor256/judges
factbase: recent.fb
- uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: zerocracy-pages
clean: false
```
## How to Contribute
In order to test this action, just run:
In order to test this action, just run (provided, you have
[GNU make](https://www.gnu.org/software/make/) installed):
```bash
make test
make
```

This should build a new Docker image and then try to use it
in order to render a simple `test.tex` document. You need to have
[Docker](https://docs.docker.com/get-docker/) installed.
This should build a new Docker image and then run the entire cycle
inside a new Docker container. You need to have
[Docker](https://docs.docker.com/get-docker/) installed. The image
will be deleted by the end of Make build.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ inputs:
options:
description: 'Command line options for the "judges" tool'
required: false
pages:
description: 'Directory path with YAML, XML, JSON and other files generated'
required: false
default: 'zerocracy-pages'
factbase:
description: 'Path of the factbase file'
required: false
Expand Down
2 changes: 2 additions & 0 deletions entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ fi
judges --verbose update --max-cycles 5 "${options[@]}" /judges-action/judges "${fb}"

# Convert the factbase to a few human-readable formats
mkdir -p "${INPUT_PAGES}"
for f in yaml xml json; do
judges print --format "${f}" --auto "${fb}"
mv "${fb}.${f}" "${INPUT_PAGES}"
done
3 changes: 1 addition & 2 deletions judges/scan/github_labels/scan_github_labels.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@
# SOFTWARE.

require_relative '../../../lib/octokit'
require_relative '../../../lib/looged'

catch :stop do
repositories do |repo|
octokit.search_issues("repo:#{repo} label:bug,enhancement,question")[:items].each do |e|
e[:labels].each do |label|
n = if_absent(looged($fb)) do |f|
n = if_absent($fb) do |f|
f.kind = 'GitHub event'
f.github_action = 'label-attached'
f.github_repository = repo
Expand Down
30 changes: 0 additions & 30 deletions lib/looged.rb

This file was deleted.

0 comments on commit 7df0094

Please sign in to comment.