Skip to content

Merge pull request #15 from planetscale/dependabot/docker/planetscale… #43

Merge pull request #15 from planetscale/dependabot/docker/planetscale…

Merge pull request #15 from planetscale/dependabot/docker/planetscale… #43

Workflow file for this run

name: ci
on:
push:
branches:
- "*"
jobs:
test:
runs-on: ubuntu-latest
if: github.event_name == 'push' && !contains(toJson(github.event.commits), '[ci skip]') && !contains(toJson(github.event.commits), '[skip ci]')
steps:
- uses: actions/checkout@v3
- run: make lint
- run: make test
release:
needs: [test]
# only create a release on main builds:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: checkout code with full history (unshallow)
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: fetch tags
run: git fetch --force --tags
- name: install autotag binary
run: |
curl -sL https://git.io/autotag-install | sudo sh -s -- -b /usr/local/bin
- name: increment tag and create release
run: |
set -eou pipefail
new_version=$(autotag -vn)
gh release create v"${new_version}" --target main --title "v${new_version}" --generate-notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}