forked from YOURLS/YOURLS
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.58 KB
/
release.yml
File metadata and controls
57 lines (48 loc) · 1.58 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Release
on:
push:
tags:
- '*'
jobs:
docker:
name: Docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
with:
repository: YOURLS/docker
ref: main
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Set published version
run: echo "${{ steps.get_version.outputs.VERSION }}" > yourls_version
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3.12.1
with:
token: ${{ secrets.PAT }}
commit-message: Bump YOURLS to ${{ steps.get_version.outputs.VERSION }}
title: Bump YOURLS to ${{ steps.get_version.outputs.VERSION }}
delete-branch: true
charts:
name: Helm charts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
with:
repository: YOURLS/charts
ref: main
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Set published version
run: |
sed -i "s/appVersion:.*/appVersion: \"${{ steps.get_version.outputs.VERSION }}\"/" charts/yourls/Chart.yaml
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3.12.1
with:
token: ${{ secrets.PAT }}
commit-message: Bump YOURLS to ${{ steps.get_version.outputs.VERSION }}
title: Bump YOURLS to ${{ steps.get_version.outputs.VERSION }}
delete-branch: true
draft: true