From e9de7ed640fb648b43174fe320012b175c021561 Mon Sep 17 00:00:00 2001 From: bahill Date: Thu, 14 Nov 2024 17:58:39 -0500 Subject: [PATCH] putting my workflows back --- .github/Stash/clean_cache.yaml | 18 ------------------ .../build_and_publish_dev.yaml | 0 .../build_and_publish_main.yaml | 0 .../generate-requirements-file.yaml | 0 .github/{Stash => workflows}/super_linter.yaml | 0 .github/{Stash => workflows}/trivy.yaml | 0 .../workflows/validate_pull_request_main.yaml | 14 ++++---------- .../{Stash => workflows}/validate_python.yaml | 0 8 files changed, 4 insertions(+), 28 deletions(-) delete mode 100644 .github/Stash/clean_cache.yaml rename .github/{Stash => workflows}/build_and_publish_dev.yaml (100%) rename .github/{Stash => workflows}/build_and_publish_main.yaml (100%) rename .github/{Stash => workflows}/generate-requirements-file.yaml (100%) rename .github/{Stash => workflows}/super_linter.yaml (100%) rename .github/{Stash => workflows}/trivy.yaml (100%) rename .github/{Stash => workflows}/validate_python.yaml (100%) diff --git a/.github/Stash/clean_cache.yaml b/.github/Stash/clean_cache.yaml deleted file mode 100644 index 2881438c..00000000 --- a/.github/Stash/clean_cache.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: cleanup caches by a branch -on: - pull_request: - branches: - - main - workflow_dispatch: - -jobs: - cleanup: - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v4 - - - name: Clear Poetry Artifacts - run: | - rm -rf ~/.cache/pypoetry/artifacts - ls -la ~/.cache/pypoetry \ No newline at end of file diff --git a/.github/Stash/build_and_publish_dev.yaml b/.github/workflows/build_and_publish_dev.yaml similarity index 100% rename from .github/Stash/build_and_publish_dev.yaml rename to .github/workflows/build_and_publish_dev.yaml diff --git a/.github/Stash/build_and_publish_main.yaml b/.github/workflows/build_and_publish_main.yaml similarity index 100% rename from .github/Stash/build_and_publish_main.yaml rename to .github/workflows/build_and_publish_main.yaml diff --git a/.github/Stash/generate-requirements-file.yaml b/.github/workflows/generate-requirements-file.yaml similarity index 100% rename from .github/Stash/generate-requirements-file.yaml rename to .github/workflows/generate-requirements-file.yaml diff --git a/.github/Stash/super_linter.yaml b/.github/workflows/super_linter.yaml similarity index 100% rename from .github/Stash/super_linter.yaml rename to .github/workflows/super_linter.yaml diff --git a/.github/Stash/trivy.yaml b/.github/workflows/trivy.yaml similarity index 100% rename from .github/Stash/trivy.yaml rename to .github/workflows/trivy.yaml diff --git a/.github/workflows/validate_pull_request_main.yaml b/.github/workflows/validate_pull_request_main.yaml index 9a26da5a..c0b23d11 100644 --- a/.github/workflows/validate_pull_request_main.yaml +++ b/.github/workflows/validate_pull_request_main.yaml @@ -34,16 +34,10 @@ jobs: path: ~/.cache/pypoetry # key uses pyproject.toml hash, so it's unique to each version of pyproject.toml key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./orchestration/pyproject.toml') }} -# restore-keys: | -# ${{ runner.os }}-build-${{ env.cache-name }}- -# ${{ runner.os }}-build- -# ${{ runner.os }}- -# - name: Clear Poetry Artifacts (if necessary) -# run: | -# if [ -d ~/.cache/pypoetry/artifacts ]; then -# echo "Clearing Poetry artifacts..." -# rm -rf ~/.cache/pypoetry/artifacts -# fi + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- - name: Install dependencies run: poetry install working-directory: ${{ github.workspace }}/orchestration diff --git a/.github/Stash/validate_python.yaml b/.github/workflows/validate_python.yaml similarity index 100% rename from .github/Stash/validate_python.yaml rename to .github/workflows/validate_python.yaml