lint: conda-forge/parsita-feedstock#8 [container=2024.11.26, requested_version=null, uuid=8631379cf2ee4b0c871aa7d2d9977959] #39719
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: webservices-workflow-dispatch | |
run-name: >- | |
${{ inputs.task }}: conda-forge/${{ inputs.repo }}#${{ inputs.pr_number }} [container=${{ inputs.container_tag }}, requested_version=${{ inputs.requested_version }}, uuid=${{ inputs.uuid }}] | |
on: | |
workflow_dispatch: | |
inputs: | |
task: | |
description: 'the task to perform' | |
required: true | |
type: string | |
repo: | |
description: 'the repository to run on' | |
required: true | |
type: string | |
pr_number: | |
description: 'the pull request number' | |
required: true | |
type: string | |
container_tag: | |
description: 'the container tag to use' | |
required: true | |
type: string | |
requested_version: | |
description: 'the requested version for a version update' | |
required: false | |
type: string | |
default: 'null' | |
uuid: | |
description: 'a unique identifier for this run' | |
required: true | |
type: string | |
sha: | |
description: 'the sha of the commit to run on' | |
required: false | |
type: string | |
default: 'null' | |
env: | |
PY_COLORS: 1 | |
defaults: | |
run: | |
shell: bash -leo pipefail {0} | |
permissions: {} | |
jobs: | |
run-task: | |
name: run-task | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.ref }} | |
- name: setup conda | |
uses: mamba-org/setup-micromamba@617811f69075e3fd3ae68ca64220ad065877f246 | |
with: | |
environment-file: conda-lock.yml | |
environment-name: webservices | |
condarc: | | |
show_channel_urls: true | |
channel_priority: strict | |
channels: | |
- conda-forge | |
- name: install code | |
run: | | |
pip install --no-deps --no-build-isolation -e . | |
- name: run task | |
run: | | |
git config --global user.name "conda-forge-webservices[bot]" | |
git config --global user.email "91080706+conda-forge-webservices[bot]@users.noreply.github.com" | |
export CF_FEEDSTOCK_OPS_CONTAINER_NAME=condaforge/webservices-dispatch-action | |
export CF_FEEDSTOCK_OPS_CONTAINER_TAG="${{ inputs.container_tag }}" | |
conda-forge-webservices-run-task \ | |
--task=${{ inputs.task }} \ | |
--repo=${{ inputs.repo }} \ | |
--pr-number=${{ inputs.pr_number }} \ | |
--task-data-dir=${{ github.workspace }}/task-data \ | |
--requested-version=${{ inputs.requested_version }} \ | |
--sha=${{ inputs.sha }} | |
- name: upload task data | |
id: upload-task-data | |
uses: actions/upload-artifact@v4 | |
with: | |
name: task-data-${{ inputs.task }}-${{ inputs.repo }}-${{ inputs.pr_number }}-${{ github.run_id }}-${{ github.run_number }} | |
path: ${{ github.workspace }}/task-data | |
retention-days: 2 | |
include-hidden-files: true | |
finalize-task: | |
name: finalize-task | |
runs-on: ubuntu-latest | |
needs: | |
- run-task | |
steps: | |
- name: checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.ref }} | |
- name: setup conda | |
uses: mamba-org/setup-micromamba@617811f69075e3fd3ae68ca64220ad065877f246 | |
with: | |
environment-file: conda-lock.yml | |
environment-name: webservices | |
condarc: | | |
show_channel_urls: true | |
channel_priority: strict | |
channels: | |
- conda-forge | |
- name: install code | |
run: | | |
pip install --no-deps --no-build-isolation -e . | |
- name: download task data | |
uses: actions/download-artifact@v4 | |
with: | |
name: task-data-${{ inputs.task }}-${{ inputs.repo }}-${{ inputs.pr_number }}-${{ github.run_id }}-${{ github.run_number }} | |
path: ${{ github.workspace }}/task-data | |
- name: finalize task | |
run: | | |
git config --global user.name "conda-forge-webservices[bot]" | |
git config --global user.email "91080706+conda-forge-webservices[bot]@users.noreply.github.com" | |
export CF_FEEDSTOCK_OPS_CONTAINER_NAME=condaforge/webservices-dispatch-action | |
export CF_FEEDSTOCK_OPS_CONTAINER_TAG="${{ inputs.container_tag }}" | |
conda-forge-webservices-finalize-task \ | |
--task-data-dir=${{ github.workspace }}/task-data | |
env: | |
GH_TOKEN: ${{ secrets.CF_ADMIN_GITHUB_TOKEN }} |