Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

feat/update (#145)

feat/update (#145) #36

Workflow file for this run

name: Bump version and git tag main branch
on:
push:
branches:
- main
jobs:
tag-main:
runs-on: ubuntu-latest
if: "${{ !contains(github.event.head_commit.message, ':bookmark: release v') }}"
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.SOCIALGROOVYBOT_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.SOCIALGROOVYBOT_GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
git_push_gpgsign: false
- name: Bump version and Git Tag
shell: bash
env:
GIT_AUTHOR_EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
GIT_AUTHOR_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
run: |
npm version minor --sign-git-tag --message ":bookmark: release v%s"
git push --follow-tags origin