diff --git a/.github/workflows/create-tag.yml b/.github/workflows/create-tag.yml new file mode 100644 index 0000000..d39da1b --- /dev/null +++ b/.github/workflows/create-tag.yml @@ -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 diff --git a/.wrappid/wrappid.meta.json b/.wrappid/wrappid.meta.json index 33276f2..869bd0f 100644 --- a/.wrappid/wrappid.meta.json +++ b/.wrappid/wrappid.meta.json @@ -2,6 +2,7 @@ "projectType": "app", "projectID": "", "projectName": "wrappid-app", + "wrTemplateVersion": "0.0.1", "remote": true, "repoProvider": "github.com", "repoOwner": "wrappid",