Skip to content

Commit

Permalink
ci: add automated release github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleh Hutnikau committed Apr 7, 2021
1 parent 21bb8f6 commit 8af8f9f
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/conventional_commits_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Action to check conventional commits on OAT pull requests

name: Conventional commits check

on:
pull_request:
branches: [ develop ]

jobs:
pr-check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: git fetch --unshallow --tags
- name: Check commit
if: always()
uses: oat-sa/conventional-commit-action@v0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/release_tao_extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Make an extension release after merging to develop branch

name: Release Tao extension

on:
pull_request:
branches:
- develop
types: [closed]
jobs:
auto-release:
if: github.event.pull_request.merged == true
name: Automated Tao extension release
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Release
uses: oat-sa/extension-release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
github_token: ${{ secrets.GH_TOKEN }}

0 comments on commit 8af8f9f

Please sign in to comment.