From 20656014d2c880631f30f46ead59be6faa539f19 Mon Sep 17 00:00:00 2001 From: eliselavy <35602279+eliselavy@users.noreply.github.com> Date: Tue, 3 Oct 2023 17:18:39 +0200 Subject: [PATCH] Update github-actions-preflight.yml --- .github/workflows/github-actions-preflight.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/github-actions-preflight.yml b/.github/workflows/github-actions-preflight.yml index 8f5c7c4..058d34e 100644 --- a/.github/workflows/github-actions-preflight.yml +++ b/.github/workflows/github-actions-preflight.yml @@ -2,23 +2,30 @@ on: [workflow_dispatch] name: GitHub Actions Ipynb for preflight jobs: - ipynb_for_publishing: + preflight: runs-on: ubuntu-latest - name: Ipynb preflight + name: Ipynb for preflight steps: - name: checkout repo uses: actions/checkout@v3 - - name: check notebook + - name: Extract branch name + shell: bash + run: echo "GitHub ref_name ${{ github.ref_name }}" + id: extract_branch + - name: preflight id: preflight uses: c2dh/journal-of-digital-history-ipynb-preflight-action@master with: - notebook: 'author_guideline_template.ipynb' + notebook: 'example/javascript.ipynb' functions: 'checkcitation,checkoutput,checkhtml,checkjavascript,checktags,checkurls' output_md: 'report.md' # Use the output from the `preflight` step - name: Use the output - run: echo "number of cells ${{ steps.preflight.outputs.size }} - output ${{ steps.preflight.outputs.checkmd }}" + run: echo "Notebook path ${{ steps.preflight.outputs.notebook_path }} - workspace ${{ steps.preflight.outputs.workspace }}" - name: commit changes uses: stefanzweifel/git-auto-commit-action@v4 with: file_pattern: '*.md' + - name: Run shell cmd + run: echo "https://github.com/${{github.repository}}/commit/${{github.sha}}/checks/${{github.run_id}}" + -- GitLab