allow test to continue if changelog isn't ready yet.

This commit is contained in:
Andrew Cassidy 2023-05-02 00:19:19 -07:00
parent 93b9c24f98
commit 99ea5415ec
2 changed files with 15 additions and 7 deletions

View File

@ -13,13 +13,9 @@ jobs:
with: with:
python-version: '3.x' python-version: '3.x'
- name: Generate changelog info - name: Setup Python Tools
run: | run:
# todo: make this part of yaclog!
pip install yaclog~=1.1 pip install yaclog~=1.1
yaclog show
echo "VERSION_TITLE=$(yaclog show -n)" >> $GITHUB_ENV
echo "$(yaclog show -mb)" >> /tmp/RELEASE.md
- name: Setup Rust toolchain - name: Setup Rust toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
@ -36,6 +32,14 @@ jobs:
- name: Run Unit Tests - name: Run Unit Tests
run: cargo test run: cargo test
- name: Generate changelog info
continue-on-error: true
run: |
# todo: make this part of yaclog!
echo "VERSION_TITLE=$(yaclog show -n)" >> $GITHUB_ENV
echo "$(yaclog show -mb)" >> /tmp/RELEASE.md
yaclog show
- name: Publish to Crates.io - name: Publish to Crates.io
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: cargo publish --token ${{ secrets.CARGO_TOKEN }} run: cargo publish --token ${{ secrets.CARGO_TOKEN }}

View File

@ -1,3 +1,7 @@
# Changelog # Changelog
All notable changes to this project will be documented in this file All notable changes to this project will be documented in this file
## Unreleased
initial commit