Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: publish scores #31

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/apply-auction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ jobs:
results_file=$(git log -1 --name-only --pretty=format: --grep 'auction run' | grep results.json)
config_file=$(git log -1 --name-only --pretty=format: --grep 'auction run' | grep config.json)
mnde_votes_file=$(git log -1 --name-only --pretty=format: --grep 'auction run' | grep mnde-votes.json)
scoring_run_id=$(git log -1 --name-only --pretty=format: --grep 'auction run' | head -1 | awk -F / '{print $2}')
epoch=$(<<<"$scoring_run_id" awk -F . '{print $1}')
curl -v -sLfS "https://scoring.marinade.finance/api/v1/scores/sam/upload?epoch=${{ epoch }}&scoringId=${{ scoring_run_id }}" -X POST \
-H "Authorization: Bearer ${{ secrets.VALIDATORS_API_ADMIN_TOKEN }}" \
-F "scores=@${{ results_file }}" \
-F "config=@${{ config_file }}" \
-F "mndeVotes=@${{ mnde_votes_file }}"
scoring_run_id=$(git log -1 --name-only --pretty=format: --grep 'auction run' | head -1 | awk -F / '{print $2}')
epoch=$(echo "$scoring_run_id" | awk -F . '{print $1}')
curl -v -sLfS "https://scoring.marinade.finance/api/v1/scores/sam/upload?epoch=${epoch}&scoringId=${scoring_run_id}" -X POST \
-H "Authorization: Bearer ${{ secrets.VALIDATORS_API_ADMIN_TOKEN }}" \
-F "scores=@${results_file}" \
-F "config=@${config_file}" \
-F "mndeVotes=@${mnde_votes_file}"
- name: Notify success
if: success()
env:
Expand Down