Skip to content

Commit

Permalink
ci(config): ➕ add wrTemplateVersion key, enable create-tag.yml
Browse files Browse the repository at this point in the history
add wrTemplateVersion key for maintaining wrappid template boilerplates

Ref: #23
  • Loading branch information
anantakumarghosh committed Mar 14, 2024
1 parent 0bb4600 commit 0d49976
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/create-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Create Tag - CI

on:
workflow_dispatch:
inputs:
version_type:
type: choice
description: Choose version bump type
options:
- -r major
- -r minor
- -r patch
- -p alpha
- -p beta
- -p build
- -p hotfix
- -p dev
required: true
default: "-r patch"
pull_request:
types:
- closed
branches:
- 'development'

jobs:
call-create-tag:
# runs-on: ubuntu-latest
permissions: write-all
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'development')
uses: wrappid/workflows/.github/workflows/util-create-tag.yml@main
with:
GIT_USER_NAME: ${{ vars.GIT_USER_NAME }}
VERSION_TYPE_REPOSITORY_DEFAULT: ${{ vars.VERSION_TYPE_REPOSITORY_DEFAULT }}
EMAIL_NOTIFY: ${{ vars.EMAIL_NOTIFY }}
EMAIL_SENDER_NAME: ${{ vars.EMAIL_SENDER_NAME }}
secrets:
PAT: ${{ secrets.PAT }}
GIT_USER_EMAIL: ${{ secrets.GIT_USER_EMAIL }}
WRAPPID_REGISTRY_TOKEN: ${{ secrets.WRAPPID_REGISTRY_TOKEN }}
EMAIL_SERVER_ADDRESS: ${{ secrets.EMAIL_SERVER_ADDRESS }}
EMAIL_SERVER_PORT: ${{ secrets.EMAIL_SERVER_PORT }}
EMAIL_USER_ID: ${{ secrets.EMAIL_USER_ID }}
EMAIL_USER_PASSWORD: ${{ secrets.EMAIL_USER_PASSWORD }}
EMAIL_TO: ${{ secrets.EMAIL_TO }}
EMAIL_CC: ${{ secrets.EMAIL_CC }} ## Optional
EMAIL_BCC: ${{ secrets.EMAIL_BCC }} ## Optional
1 change: 1 addition & 0 deletions .wrappid/wrappid.meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"projectType": "app",
"projectID": "",
"projectName": "wrappid-app",
"wrTemplateVersion": "0.0.1",
"remote": true,
"repoProvider": "github.com",
"repoOwner": "wrappid",
Expand Down

0 comments on commit 0d49976

Please sign in to comment.