Skip to content

tests: Fix deposit fee check #48

tests: Fix deposit fee check

tests: Fix deposit fee check #48

Workflow file for this run

name: Committer Check
on:
pull_request:
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get PR Commits
id: "get-pr-commits"
uses: tim-actions/get-pr-commits@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
- env:
COMMITS: ${{ steps.get-pr-commits.outputs.commits }}
run: |
set -eux -o pipefail
jq -r '.[] | .commit.committer.email' <<< "${COMMITS}" | while read -r e; do
[ "${e#*@}" == 'levana.exchange' ] || [ "${e}" == '[email protected]' ] || [ "${e#*@}" == 'users.noreply.github.com' ]
done
jq -r '.[] | .commit.author.email' <<< "${COMMITS}" | while read -r e; do
[ "${e#*@}" == 'levana.exchange' ] || [ "${e#*@}" == 'users.noreply.github.com' ]
done