2023-03-14 17:01:56 -04:00

49 lines
1.3 KiB
YAML

name: "ACA upstream"
on:
schedule:
- cron: "0 12 * * *"
workflow_dispatch:
inputs:
repo_to_update:
description: Repository to update
type: choice
required: true
options:
- alfresco-applications
- alfresco-apps
default: alfresco-applications
env:
GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
GH_COMMIT: ${{ github.sha }}
GH_BUILD_NUMBER: ${{ github.run_id }}
NODE_OPTIONS: "--max-old-space-size=5120"
jobs:
trigger_aca_upstream:
name: Trigger ACA Upstream
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@v1.35.0
with:
username: ${{ vars.BOT_GITHUB_USERNAME }}
email: ${{ vars.BOT_GITHUB_EMAIL }}
global: true
- name: Trigger Upstream
shell: bash
run: |
npm install github-api
./scripts/gh/update/update-project.sh -p $GH_BUILD_NUMBER -t $GH_TOKEN -v alpha -c $GH_COMMIT -r ${{ inputs.repo_to_update || 'alfresco-applications' }}