diff --git a/.github/workflows/adf_alpha.yml b/.github/workflows/adf_alpha.yml index 6efc60278c..4359b34c99 100644 --- a/.github/workflows/adf_alpha.yml +++ b/.github/workflows/adf_alpha.yml @@ -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 }} diff --git a/.github/workflows/cron.yml b/.github/workflows/cron-e2e.yml similarity index 88% rename from .github/workflows/cron.yml rename to .github/workflows/cron-e2e.yml index 7118016af4..28a03016da 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron-e2e.yml @@ -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 diff --git a/.github/workflows/cron-upstream.yml b/.github/workflows/cron-upstream.yml new file mode 100644 index 0000000000..94fdb1d74f --- /dev/null +++ b/.github/workflows/cron-upstream.yml @@ -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 diff --git a/scripts/travis/update/update-project.sh b/scripts/travis/update/update-project.sh index ee95b990f5..0b3b0db936 100755 --- a/scripts/travis/update/update-project.sh +++ b/scripts/travis/update/update-project.sh @@ -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 $?