forked from kubernetes-retired/kubefed
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (32 loc) · 1017 Bytes
/
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
name: release-please-main
permissions:
contents: write
pull-requests: write
actions: write
on:
workflow_dispatch:
push:
branches:
# (todo): migrate to main
- master
defaults:
run:
shell: bash
jobs:
release-please:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: googleapis/release-please-action@v4
id: release-please
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
- name: Tag major and minor versions
if: ${{ steps.release.outputs.release_created }} # Only run if a release was created
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git tag -a ${{ steps.release-please.outputs.tag_name }} -m "Release ${{ steps.release-please.outputs.tag_name }}"
git push origin ${{ steps.release-please.outputs.tag_name }}