make comment for staged-recipes linter #8146
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@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- name: install code | |
uses: mamba-org/setup-micromamba@06375d89d211a1232ef63355742e9e2e564bc7f7 | |
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 }} |