Skip to content

Commit 262a4fd

Browse files
committed
Add template for unity upgrade workflow
1 parent daebc82 commit 262a4fd

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## [Automated Workflow] Upgrade unity to {{ .unityversion }}
2+
3+
> [workflow file](https://github.com/JohannesDeml/UnityWebGL-LoadingTest/blob/master/.github/workflows/upgrade-unity.yml) using [create-pull-request](https://github.com/peter-evans/create-pull-request) & [render-template](https://github.com/chuhlomin/render-template)
4+
5+
### Built version demos
6+
7+
* https://deml.io/experiments/unity-webgl/{{ .unityversion }}-webgl2
8+
* https://deml.io/experiments/unity-webgl/{{ .unityversion }}-webgl1
9+
10+
### Other links
11+
12+
* [All builds](https://deml.io/experiments/unity-webgl)
13+
* [Game CI docker images](https://game.ci/docs/docker/versions)
14+
* [Unity Download Archive](https://unity.com/releases/editor/archive)

.github/workflows/upgrade-unity.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Manually upgrade unity and update packages
2+
# Check if the Unity version already exists as a docker image: https://game.ci/docs/docker/versions
23
name: Upgrade Unity version
34

45
on:
@@ -117,14 +118,23 @@ jobs:
117118
GIT_USER: ${{ github.actor }}
118119

119120

121+
- name: Render template
122+
id: template
123+
uses: chuhlomin/render-template@v1.4
124+
with:
125+
template: .github/templates/upgrade-unity-pr-body.md
126+
vars: |
127+
unityversion: ${{ steps.upgrade_name.outputs.NAME }}
128+
120129
- name: Create Pull Request
121130
uses: peter-evans/create-pull-request@v4
122131
with:
123132
token: ${{ secrets.PR_GITHUB_TOKEN }}
124133
commit-message: "[Automated workflow] upgrade-unity from ${{steps.last_unity_version.outputs.VERSION}} to ${{ inputs.unityVersion }}"
125134
branch: "ci/upgrade-unity/from-${{steps.last_unity_version.outputs.VERSION}}-to-${{ steps.upgrade_name.outputs.NAME }}"
126135
delete-branch: true
127-
title: "[Automated workflow] upgrade-unity from ${{steps.last_unity_version.outputs.VERSION}} to ${{ inputs.unityVersion }} - URP: ${{ inputs.urp }}"
136+
title: "[Automated workflow] upgrade-unity from ${{steps.last_unity_version.outputs.VERSION}} to ${{ steps.upgrade_name.outputs.NAME }}"
137+
body: ${{ steps.template.outputs.result }}
128138

129139
- name: Add tags
130140
run: |

0 commit comments

Comments
 (0)