Skip to content

Commit

Permalink
Use 'intelygenz/monorepo-tagger-action'
Browse files Browse the repository at this point in the history
  • Loading branch information
Rindrics committed Jun 24, 2024
1 parent e4bec3d commit 1a81a56
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
type: string
description: directory to run commands
required: true
update-versions-in:
type: string
description: "parameter to pass to 'intelygenz/monorepo-tagger-action'"
required: true

jobs:
check:
Expand All @@ -27,9 +31,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Create pull request with incremented tag
id: run-tagpr
uses: Songmu/tagpr@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: ${{ inputs.working-directory }}
- name: Generate a release
uses: intelygenz/monorepo-tagger-action@v2
with:
mode: 'component'
type: 'release'
component-prefix: "${{ inputs.working-directory }}-"
update-versions-in: ${{ inputs.update-versions-in }}
commit-message: "Update release tag for 'core'"
commit-author: "github-actions[bot]"
commit-author-email: "github-actions[bot]@users.noreply.github.com"

1 change: 1 addition & 0 deletions .github/workflows/cd-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ jobs:
uses: ./.github/workflows/_cd.yml
with:
working-directory: core
update-versions-in: '[{"file": "core/package.json"}]'

0 comments on commit 1a81a56

Please sign in to comment.