mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
* cleanup GHA * remove unused parameters * consolidate actions, improve readability * remove unused files * restore fetch depth
30 lines
976 B
YAML
30 lines
976 B
YAML
name: "Before install and variables setup"
|
|
description: "Before install and variables setup"
|
|
|
|
runs:
|
|
using: "composite"
|
|
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
|