[ACS-6543] switch from aws to gha cache (#3582)

* switch to gha cache

* save cache

* use exact path

* improve cache key

* cleanup

* cleanup

* remove npm registry var

* remove codeowners
This commit is contained in:
Denys Vuika
2024-01-04 15:25:26 +00:00
committed by GitHub
parent 43f16a05b7
commit 33c3d6f5d4
8 changed files with 23 additions and 209 deletions
-18
View File
@@ -6,24 +6,6 @@ runs:
steps:
- uses: ./.github/actions/setup
- name: setup S3 caching
shell: bash
run: |
S3_DBP_PATH="s3://alfresco-travis-builds/aca"
if [ "${{ github.event_name }}" == "push" ]; then
S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/$BRANCH_NAME"
elif [ "${{ github.event_name }}" == "pull_request" ]; then
S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/$BRANCH_NAME"
echo "BASE_HASH=origin/$BRANCH_NAME" >> $GITHUB_ENV
elif [ "${{ github.event_name }}" == "schedule" ]; then
S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/cron"
else
S3_DBP_ROOT_FOLDER="$S3_DBP_PATH/api"
fi
echo "S3_DBP_FOLDER="$S3_DBP_ROOT_FOLDER/${{ github.run_id }}"" >> $GITHUB_ENV
- name: ADF linking
if: ${{ github.event_name == 'pull_request'}}
uses: ./.github/actions/adf-linking