-
Notifications
You must be signed in to change notification settings - Fork 2k
40 lines (34 loc) · 1.05 KB
/
new-alias.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
name: New Alias
on:
workflow_dispatch:
inputs:
oldspace:
description: 'Old Space Id'
required: true
default: ''
type: string
newspace:
description: 'New Space Id'
required: true
default: ''
type: string
jobs:
new-alias:
name: New Alias
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- name: New Alias
run: node scripts/newAlias.ts ${{ inputs.oldspace }} ${{ inputs.newspace }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Space migration from ${{ inputs.oldspace }} to ${{ inputs.newspace }}
title: Space migration from ${{ inputs.oldspace }} to ${{ inputs.newspace }}
body: |
- spaces/aliases.json updated
Auto-generated by Github Actions
branch: space-migration-${{ inputs.oldspace }}-${{ inputs.newspace }}