-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.08 KB
/
release-deploy.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
name: Release Deploy
on:
release:
types: [published]
workflow_dispatch:
inputs:
newVersion:
description: 'New Version'
default: '4.0.0'
required: true
jobs:
updatePackageSwift:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Extract Tag Name
id: tag_name
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
if: github.event_name == 'release'
- name: Update Package.swift with release ref
run: ./Scripts/UpdateManifests.bash $TAG_NAME
if: github.event_name == 'release'
- name: Update SDK Manifests with new version
run: ./Scripts/UpdateManifests.bash ${{ github.event.inputs.newVersion }}
if: github.event_name == 'workflow_dispatch'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: "merge: ${{github.event.inputs.newVersion}}"
branch: "release/${{github.event.inputs.newVersion}}"
commit-message: ${{github.event.inputs.newVersion}}
base: main
delete-branch: true