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