mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
add a workflow to catches and restarts failed conda builds due to 143 errors. And minor cleanup of unused variables in conda meta.yaml
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
name: Restart failed daily conda builds
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_run:
|
||||||
|
workflows: [ci-ifcopenshell-conda-daily]
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
|
||||||
|
env:
|
||||||
|
REPO_OWNER: IfcOpenShell
|
||||||
|
MY_WORKFLOW: ci-ifcopenshell-conda-daily
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
restart-failed-runs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
||||||
|
steps:
|
||||||
|
- name: Check for failed runs
|
||||||
|
id: check-failed-runs
|
||||||
|
run: |
|
||||||
|
echo "Checking for failed runs..."
|
||||||
|
# Replace "my-workflow" with the name of your workflow
|
||||||
|
failed_runs=$(curl -s https://api.github.com/repos/${{ env.REPO_OWNER }}/REPO/actions/runs?status=completed&conclusion=failure&workflow_id=${{ env.MY_WORKFLOW }} | jq '. | map(select(.status.code == 143))')
|
||||||
|
echo "Found $(echo $failed_runs | jq length) failed runs"
|
||||||
|
- name: Restart failed runs
|
||||||
|
if: steps.check-failed-runs.outputs.failed_runs != null
|
||||||
|
run: |
|
||||||
|
echo "Restarting failed runs..."
|
||||||
|
for run_id in $(echo $failed_runs | jq -r '.[].id'); do
|
||||||
|
echo "Restarting run $run_id..."
|
||||||
|
curl -s -X POST https://api.github.com/repos/${{ env.REPO_OWNER }}/REPO/actions/runs/$run_id/rerun \
|
||||||
|
-H "Accept: application/vnd.github+json"
|
||||||
|
done
|
||||||
+1
-3
@@ -1,8 +1,6 @@
|
|||||||
{% set name = "ifcopenshell" %}
|
{% set name = "ifcopenshell" %}
|
||||||
{% set version = "0.7.0" %}
|
{% set version = "0.7.0" %}
|
||||||
{% set occt_version = "7.6.2" %}
|
|
||||||
{% set cgal_cpp_version = "5.3" %}
|
|
||||||
{% set hdf5_version = "1.12.1" %}
|
|
||||||
|
|
||||||
package:
|
package:
|
||||||
name: {{ name }}
|
name: {{ name }}
|
||||||
|
|||||||
Reference in New Issue
Block a user