build(deps): Bump the all-go-mod-patch-and-minor group across 3 direc… #410
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 }} |