add some information about throws exeptions when asking for generated… #293
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CoreAPI | Nightly Builder | |
on: | |
push: | |
branches: | |
- '**' | |
workflow_dispatch: | |
jobs: | |
get-latest-version: | |
name: Get latest version | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.version-ready.outputs.release }} | |
steps: | |
- name: Get latest release version | |
if: github.event_name == 'push' | |
id: get-latest-version | |
uses: pozetroninc/[email protected] | |
with: | |
repository: ${{ github.repository }} | |
- name: Increment version | |
if: github.event_name == 'push' | |
id: increment-version | |
run: | | |
RELEASE_NAME=${{ steps.get-latest-version.outputs.release }} | |
echo "release=$(echo ${RELEASE_NAME#v} | awk -F. -v OFS=. '{$NF = $NF + 1;} 1')" >> "$GITHUB_OUTPUT" | |
- name: Set output | |
id: version-ready | |
run: | | |
if [[ "${{ github.ref_name}}" == "main" || "${{ github.ref_name }}" == "master" ]]; then | |
echo "release=${{ steps.increment-version.outputs.release }}" >> "$GITHUB_OUTPUT" | |
else | |
echo "release=${{ github.ref_name }}_${{ steps.increment-version.outputs.release }}" >> "$GITHUB_OUTPUT" | |
fi | |
build-nightly: | |
name: Build Nightly version | |
needs: get-latest-version | |
uses: ./.github/workflows/build.yml | |
with: | |
version: ${{ needs.get-latest-version.outputs.version }}-SNAPSHOT | |
isRelease: false |