Skip to content

Try history

Try history #8

Workflow file for this run

name: Release Version
# When merged into main
# Check if new test functions are added?
# if no new tests, then it is a patch
on:
push:
branches:
- charnley/release
jobs:
release:
name: Creating release
runs-on: "ubuntu-latest"
permissions:
contents: write
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
with fetch-depth: 0

Check failure on line 24 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release Version

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 24, Col: 9): Unexpected value 'with fetch-depth'
- name: Bump version
run: |
if test $(git diff HEAD^ HEAD tests | grep -q "+def")
then
make bump-version-minor
else
make bump-version-patch
fi
- name: Commit version
run: make commit-version-tag
- name: Push to main
run: git push origin --tags
# - name: Create release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# tag: ${{ GITHUB_REF_NAME }}
# run: |
# gh release create "$tag" \
# --repo="$GITHUB_REPOSITORY" \
# --title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
# --generate-notes