Skip to content

Operator Onboarding: CryptoCrew Testt #1

Operator Onboarding: CryptoCrew Testt

Operator Onboarding: CryptoCrew Testt #1

name: Operator Onboarding
on:
issues:
types: [opened, edited]
jobs:
update-ibc-file:
runs-on: ubuntu-latest
outputs:
has_label: ${{ steps.label-check.outputs.has_label }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Check if issue has operator-onboarding label
id: label-check
run: |
LABEL=$(echo '${{ github.event.issue.labels }}' | jq -r '.[] | select(.name == "operator-onboarding").name')
if [ "$LABEL" == "operator-onboarding" ]; then
echo "::set-output name=has_label::true"
else
echo "::set-output name=has_label::false"
fi
- name: Update IBC file and create PR
if: steps.label-check.outputs.has_label == 'true'
run: python .github/scripts/update_ibc_file.py ${{ github.event.issue.number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}