-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
174657e
commit 0035df3
Showing
4 changed files
with
46 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Comment on PR | ||
|
||
on: | ||
pull_request_target: | ||
branches: [ master ] | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
container: horizoneda/horizon:latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: pool | ||
- name: fetch master | ||
if: github.event_name == 'pull_request' | ||
run: git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin ${{ github.base_ref }}:${{ github.base_ref }} | ||
working-directory: pool | ||
- name: add pool | ||
run: python3 scripts/ci/add_pool.py | ||
- name: update pool | ||
run: python3 scripts/ci/update_pool.py >> comment.md | ||
- name: print diff to base | ||
if: github.event_name == 'pull_request' | ||
run: python3 scripts/ci/diff_to_base.py ${{ github.base_ref }} >> comment.md | ||
- name: print comment | ||
if: ${{ always() }} | ||
run: cat comment.md | ||
- uses: harupy/comment-on-pr@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
filename: comment.md | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import horizon | ||
horizon.PoolManager.add_pool(".") | ||
horizon.PoolManager.add_pool("pool") | ||
print("added pools") | ||
for k,v in horizon.PoolManager.get_pools().items() : | ||
print(k,v) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters