-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (36 loc) · 1.45 KB
/
prepare_release.yaml
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
name: Prepare release
on:
workflow_dispatch:
jobs:
prepare_release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get latest frontend release
id: get_frontend_release
uses: octokit/[email protected]
with:
route: GET /repos/manulera/ShareYourCloning_frontend/releases/latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get latest backend release
id: get_backend_release
uses: octokit/[email protected]
with:
route: GET /repos/manulera/ShareYourCloning_backend/releases/latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create draft release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ""
release_name: "Draft Release"
body: |
This release includes:
Frontend: [${{ fromJson(steps.get_frontend_release.outputs.data).tag_name }}](https://github.com/manulera/ShareYourCloning_frontend/releases/tag/${{ fromJson(steps.get_frontend_release.outputs.data).tag_name }})
Backend: [${{ fromJson(steps.get_backend_release.outputs.data).tag_name }}](https://github.com/manulera/ShareYourCloning_backend/releases/tag/${{ fromJson(steps.get_backend_release.outputs.data).tag_name }})
draft: true
prerelease: false