-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.09 KB
/
migrate-environments.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Migrate Environments
on:
workflow_dispatch:
inputs:
source_org:
description: 'Source organization'
required: true
default: 'liatrio-enterprise'
source_repo:
description: 'Source repository'
required: true
target_org:
description: 'Target organization'
required: true
default: 'liatrio-enterprise'
target_repo:
description: 'Target repository'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Run script
env:
SOURCE_ORG: ${{ github.event.inputs.source_org }}
SOURCE_REPO: ${{ github.event.inputs.source_repo }}
TARGET_ORG: ${{ github.event.inputs.target_org }}
TARGET_REPO: ${{ github.event.inputs.target_repo }}
GH_PAT_SOURCE: ${{ secrets.GH_PAT_SOURCE }}
GH_PAT_TARGET: ${{ secrets.GH_PAT_TARGET }}
run: node migrate.js