tests: Fix deposit fee check #48
Workflow file for this run
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
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 |