-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (39 loc) · 1.41 KB
/
release-please.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
38
39
40
41
42
43
44
45
46
47
# Copyright 2023 Nutanix. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: release-please-main
on:
push:
branches:
- main
- release/v*
permissions:
contents: write
pull-requests: write
actions: write
defaults:
run:
shell: bash
jobs:
release-please:
runs-on: ubuntu-22.04
steps:
- uses: googleapis/release-please-action@v4
id: release-please
with:
target-branch: ${{ github.ref_name }}
- uses: actions/checkout@v4
if: ${{ steps.release-please.outputs.release_created }}
- name: Tag common and api modules
if: ${{ steps.release-please.outputs.release_created }}
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git tag -a common/${{ steps.release-please.outputs.tag_name }} -m "Release common/${{ steps.release-please.outputs.tag_name }}"
git tag -a api/${{ steps.release-please.outputs.tag_name }} -m "Release api/${{ steps.release-please.outputs.tag_name }}"
git push origin {api,common}/${{ steps.release-please.outputs.tag_name }}
- if: ${{ steps.release-please.outputs.release_created }}
name: Run release workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: release-tag.yml
ref: ${{ steps.release-please.outputs.tag_name }}