Merge pull request #29 from mesosphere/dependabot/github_actions/dock… #6
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
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 }} |