Operator Onboarding: CryptoCrew Testt #1
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: 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 }} |