Cron - Separate cron e2e from upstream and for different repo (#8300)

* separate cron e2e from upstream and for different repo

* remove useless env

---------

Co-authored-by: alfresco-build <alfresco-build@hyland.com>
This commit is contained in:
Maurizio Vitale
2023-02-22 14:30:29 +00:00
committed by GitHub
parent 8625a49df7
commit 90c8cb3add
4 changed files with 36 additions and 19 deletions

View File

@@ -22,10 +22,11 @@ on:
type: choice
required: true
options:
- all
- alfresco-content-app
- alfresco-applications
- alfresco-apps
- alfresco-content-app
default: alfresco-applications
default: all
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}

View File

@@ -1,4 +1,4 @@
name: "cron schedule"
name: "cron e2e daily"
on:
schedule:
@@ -53,15 +53,3 @@ jobs:
name: run e2e
uses: ./.github/workflows/pull-request.yml
secrets: inherit
adf-alpha-test:
name: trigger alpha test
uses: ./.github/workflows/adf_alpha.yml
secrets: inherit
adf-upstream-alpha-hxp:
name: trigger upstream alpha for hxp monorepo
uses: ./.github/workflows/adf_alpha.yml
secrets: inherit
with:
repo_to_update: alfresco-apps

27
.github/workflows/cron-upstream.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: "cron upstream daily"
on:
schedule:
- cron: '0 12 * * *'
jobs:
adf-upstream-alpha-alfresco-aca:
name: trigger upstream alpha for alfresco-content-app
uses: ./.github/workflows/adf_alpha.yml
secrets: inherit
with:
repo_to_update: alfresco-content-app
adf-upstream-alpha-alfresco-apps:
name: trigger upstream alpha for alfresco-applications
uses: ./.github/workflows/adf_alpha.yml
secrets: inherit
with:
repo_to_update: alfresco-applications
adf-upstream-alpha-hxp:
name: trigger upstream alpha for hxp monorepo
uses: ./.github/workflows/adf_alpha.yml
secrets: inherit
with:
repo_to_update: alfresco-apps

View File

@@ -157,15 +157,16 @@ rm -rf $TEMP_GENERATOR_DIR
if [ "$DRY_RUN" = "false" ]; then
if [ "$REPO" = "alfresco-apps" ]; then
update $REPO
else
if [ "$REPO" = "all" ]; then
update "generator-alfresco-adf-app"
update "alfresco-content-app"
update "alfresco-applications"
update "alfresco-apps"
else
update $REPO
fi
else
echo "[dry-run] it would have update repos: 'generator-alfresco-adf-app', 'alfresco-content-app', $REPO"
echo "[dry-run] it would have update repos: $REPO "
fi
exit $?