Get rid of separate download-manifests action

This commit is contained in:
Ayaz Salikhov
2023-12-21 21:03:09 +04:00
committed by Ayaz Salikhov
parent cc3aa43c46
commit fccea73332
4 changed files with 17 additions and 293 deletions

View File

@@ -1,278 +0,0 @@
name: Download manifests
description: Download all manifests and history lines
# Unfortunately, `actions/download-artifact` doesn't support wildcard download
# To make this workflow fast, we manually list all manifests and history lines downloads
# https://github.com/actions/download-artifact/issues/6
inputs:
hist-lines-dir:
description: Directory to store history lines
required: true
manifests-dir:
description: Directory to store manifest files
required: true
fast-build:
description: Only build docker-stacks-foundation and base-notebook
required: true
runs:
using: composite
steps:
- name: Download artifact 📥
uses: actions/download-artifact@v4
with:
name: docker-stacks-foundation-aarch64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
with:
name: docker-stacks-foundation-x86_64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
with:
name: base-notebook-aarch64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
with:
name: base-notebook-x86_64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: minimal-notebook-aarch64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: minimal-notebook-x86_64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: scipy-notebook-aarch64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: scipy-notebook-x86_64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: r-notebook-aarch64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: r-notebook-x86_64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: julia-notebook-aarch64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: julia-notebook-x86_64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: tensorflow-notebook-aarch64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: tensorflow-notebook-x86_64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: pytorch-notebook-aarch64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: pytorch-notebook-x86_64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: datascience-notebook-aarch64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: datascience-notebook-x86_64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: pyspark-notebook-aarch64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: pyspark-notebook-x86_64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: all-spark-notebook-aarch64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: all-spark-notebook-x86_64-history_line
path: ${{ inputs.hist-lines-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
with:
name: docker-stacks-foundation-aarch64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
with:
name: docker-stacks-foundation-x86_64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
with:
name: base-notebook-aarch64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
with:
name: base-notebook-x86_64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: minimal-notebook-aarch64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: minimal-notebook-x86_64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: scipy-notebook-aarch64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: scipy-notebook-x86_64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: r-notebook-aarch64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: r-notebook-x86_64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: julia-notebook-aarch64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: julia-notebook-x86_64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: tensorflow-notebook-aarch64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: tensorflow-notebook-x86_64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: pytorch-notebook-aarch64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: pytorch-notebook-x86_64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: datascience-notebook-aarch64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: datascience-notebook-x86_64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: pyspark-notebook-aarch64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: pyspark-notebook-x86_64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: all-spark-notebook-aarch64-manifest
path: ${{ inputs.manifests-dir }}
- name: Download artifact 📥
uses: actions/download-artifact@v4
if: inputs.fast-build == 'false'
with:
name: all-spark-notebook-x86_64-manifest
path: ${{ inputs.manifests-dir }}

View File

@@ -13,10 +13,6 @@ updates:
directory: .github/actions/create-dev-env/
schedule:
interval: weekly
- package-ecosystem: github-actions
directory: .github/actions/download-manifests/
schedule:
interval: weekly
- package-ecosystem: github-actions
directory: .github/actions/load-image/
schedule:

View File

@@ -18,16 +18,24 @@ jobs:
- name: Create dev environment 📦
uses: ./.github/actions/create-dev-env
- name: Download all manifests and history lines 📥
uses: ./.github/actions/download-manifests
- name: Download all history lines 📥
uses: actions/download-artifact@v4
with:
hist-lines-dir: /tmp/jupyter/hist_lines/
manifests-dir: /tmp/jupyter/manifests/
fast-build: ${{ contains(github.event.pull_request.title, '[FAST_BUILD]') }}
- name: Display structure of downloaded files 🔍️
run: |
ls -R /tmp/jupyter/hist_lines/
ls -R /tmp/jupyter/manifests/
pattern: "*-history_line"
path: /tmp/jupyter/hist_lines/
- name: List the history lines directory 🔍️
run: ls -R /tmp/jupyter/hist_lines/
shell: bash
- name: Download all manifests 📥
uses: actions/download-artifact@v4
with:
pattern: "*-manifest"
path: /tmp/jupyter/manifests/
- name: List the manifests directory 🔍️
run: ls -R /tmp/jupyter/manifests/
shell: bash
- name: Checkout Wiki Repo 📃

View File

@@ -22,7 +22,6 @@ on:
# We use local composite actions to combine multiple workflow steps within one action
# https://docs.github.com/en/actions/creating-actions/about-custom-actions#composite-actions
- ".github/actions/create-dev-env/action.yml"
- ".github/actions/download-manifests/action.yml"
- ".github/actions/load-image/action.yml"
- "images/**"
@@ -43,7 +42,6 @@ on:
- ".github/workflows/docker-wiki-update.yml"
- ".github/actions/create-dev-env/action.yml"
- ".github/actions/download-manifests/action.yml"
- ".github/actions/load-image/action.yml"
- "images/**"