Skip to content

Make code error reliant #57

Make code error reliant

Make code error reliant #57

name: CI
on:
push:
branches:
- master
paths-ignore:
- '.github/**'
pull_request:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run tests
run: |
./run_tests.sh
- uses: ./versioner/
if: ${{ github.ref == 'refs/heads/master' }}
id: versioner
- name: publish tag
if: ${{ github.ref == 'refs/heads/master' }}
run: |
git config --global user.email ${{ secrets.EMAIL }}
git config --global user.name ${{ secrets.NAME }}
git tag -a ${{ steps.versioner.outputs.version }} -m ${{ steps.versioner.outputs.version }}
git push --tags