-
Notifications
You must be signed in to change notification settings - Fork 16
27 lines (25 loc) · 901 Bytes
/
release.yml
File metadata and controls
27 lines (25 loc) · 901 Bytes
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
name: Release
on:
release:
types: [published]
jobs:
alidist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: 'alisw/alidist'
- name: Change version in recipe
run: |
set +x
CURRENT_VERSION=`cat monitoring.sh | grep "tag:" | awk '{print $2}'`
sed -i "s/${CURRENT_VERSION}/${{ github.event.release.tag_name }}/g" monitoring.sh
- name: Create PR in alidist
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.PAT }}
commit-message: Bump monitoring
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
branch: monitoring-${{ github.event.release.tag_name }}
body: Auto-generated PR for the following release ${{ github.event.release.html_url }}
title: Bump monitoring to ${{ github.event.release.tag_name }}