Skip to content

Commit

Permalink
Update release-please-action.yml (core-infra-svcs#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdexterpark authored Jan 23, 2024
1 parent a446864 commit bd85e30
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/release-please-action.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
# Terraform Provider testing workflow.
name: release please action

# This GitHub action creates a release PR and git tags for our terraform provider.
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
- uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: terraform-module
package-name: ${{env.ACTION_NAME}}
- name: Checkout Repository
uses: actions/checkout@v2
- name: Tag Major and Minor Versions
- uses: actions/checkout@v4
- name: tag major and minor versions
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
Expand All @@ -34,4 +27,4 @@ jobs:
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
git push origin v${{ steps.release.outputs.major }}
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}

0 comments on commit bd85e30

Please sign in to comment.