Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
award

GitHub Action

Upload CWL conformance badges

v1.1.0

Upload CWL conformance badges

award

Upload CWL conformance badges

Upload CWL conformance badges

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Upload CWL conformance badges

uses: common-workflow-lab/[email protected]

Learn more about this action in common-workflow-lab/upload-conformance-badges

Choose a version

upload-conformance-badges

It is a custom Github Action for uploading CWL conformance badges to specified repository.

Example

jobs:
  conformance:
    runs-on: ubuntu-latest
    steps:
      ...

      - name: Run conformance tests
        id: run-conformance
        uses: common-workflow-lab/run-conformance-tests@v1
        with:
          cwlVersion: v1.0
          runner: your-runner
          timeout: 30
          skip-python-install: true

      - name: Save badges
        if: success() && github.event_name == 'push' # upload badges when this action is invoked by `push` event
        uses: common-workflow-lab/upload-conformance-badges@v1
        with:
          cwlVersion: v1.0
          runner-name: your-runner
          badgedir: ${{ steps.run-conformance.outputs.badgedir }}
          repository: ${{ github.repository_owner }}/conformance
          upload-default-branch: true
          token: ${{ secrets.CONFORMANCE_TOKEN }}

Input parameters

Parameters Required Default Description
cwlVersion true - target CWL version
runne-namer true - name of CWL runner
badgedir true - full path to the directory that stores conformance badges
repository true - repository (in the form of owner/repo) to store badges
upload-default-branch false false whether uploading the result of HEAD in the default branch
token true - token to commit the repository specified in the repository field

This action has no output parameters.