make comment for staged-recipes linter #4293
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: make comment for staged-recipes linter | |
on: | |
workflow_run: | |
workflows: ["staged-recipes linter"] | |
types: | |
- completed | |
jobs: | |
make-comment: | |
name: make comment | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -leo pipefail {0} | |
steps: | |
- name: checkout code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- name: install code | |
uses: mamba-org/setup-micromamba@f8b8a1e23a26f60a44c853292711bacfd3eac822 | |
with: | |
environment-name: lint | |
condarc: | | |
show_channel_urls: true | |
channel_priority: strict | |
channels: | |
- conda-forge | |
create-args: >- | |
conda-smithy | |
pygithub | |
requests | |
- name: make comment | |
run: | | |
python .github/workflows/scripts/linter_make_comment.py \ | |
--head-repo-owner=${{ github.event.workflow_run.head_repository.owner.login }} \ | |
--workflow-run-id=${{ github.event.workflow_run.id }} \ | |
--head-sha=${{ github.event.workflow_run.head_sha }} | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |