mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-4632] Add GH workflow to trigger ACA upstream (#2992)
* [ACS-4632] Add GH workflow to trigger ACA upstream * [ACS-4632] Bump node version and switch to npm cache
This commit is contained in:
39
.github/workflows/aca-upstream.yml
vendored
Normal file
39
.github/workflows/aca-upstream.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: "ACA upstream"
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
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 }}
|
||||
TRAVIS_COMMIT: ${{ github.sha }}
|
||||
TRAVIS_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: install NPM
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
cache: 'npm'
|
||||
- name: Trigger upstream
|
||||
shell: bash
|
||||
run: |
|
||||
npm install github-api
|
||||
./scripts/travis/update/update-project.sh -p $TRAVIS_BUILD_NUMBER -t $GH_TOKEN -v alpha -c $TRAVIS_COMMIT -r ${{ inputs.repo_to_update }}
|
Reference in New Issue
Block a user