Skip to content

Add extra info to the logging when failing to reconnect #34

Add extra info to the logging when failing to reconnect

Add extra info to the logging when failing to reconnect #34

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Typedoc Generator
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ develop ]
paths: [ src/** ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Typedoc:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Remove Old Documentation
run: rm -r docs
- name: Re-Create Docs Folder
run: mkdir docs
- name: Install Dependencies
run: npm install && npm install typedoc --save-dev
- name: Generate Javadoc
run: npx typedoc --out docs src/*
- name: Re-inject Theme
run: 'echo "theme: jekyll-theme-tactile" > docs/_config.yml'
- name: Commit files
id: commit
shell: bash
run: |
git config --local user.email "[email protected]"
git config --local user.name "github-actions"
git add --all
if [ -z "$(git status --porcelain)" ]; then
echo "::set-output name=push::false"
else
git commit -m "Updated API Documentation Using Typedoc" -a
echo "::set-output name=push::true"
fi
- name: Push changes
if: steps.commit.outputs.push == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}