Skip to content

Reusable composite actions used from other Weaviate workflows to avoid code duplication

License

Notifications You must be signed in to change notification settings

weaviate/github-common-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

github-common-actions

Reusable composite actions used from other Weaviate workflows to avoid code duplication

weaviate-version-in-image

Description

Retrieves the Weaviate version from a given Weaviate Docker image.

Inputs

  • image_tag (required): The Weaviate Docker image to retrieve the version from. Default: latest.
  • registry (optional): The Docker registry and namespace to pull the image from. Default: docker.io/semitechnologies/weaviate.

Outputs

  • weaviate_version: The Weaviate version from the image tag.

Usage

name: Retrieve Weaviate Version
on: [push]

jobs:
    retrieve-version:
        runs-on: ubuntu-latest
        steps:
            - name: Checkout repository
              uses: actions/checkout@v2

            - name: Retrieve Weaviate Version
              uses: weaviate/github-common-actions/.github/actions/weaviate-version-in-image@main
              id: weaviate-version
              with:
                image_tag: 'latest'
                registry: 'docker.io/semitechnologies/weaviate'

            - name: Output Weaviate Version
              run: echo "Weaviate Version: ${{ steps.weaviate-version.outputs.weaviate_version }}"

Runs

This action runs using composite with the following steps:

  1. Set globals: Sets global variables for action timeout and port.
  2. Start Weaviate service: Starts the Weaviate Docker container.
  3. Wait for .well-known/ready API to be ready: Waits until the Weaviate service is ready.
  4. Set the Weaviate version as an output: Retrieves and sets the Weaviate version as an output.

get-latest-weaviate-version

Description

Retrieves the latest Weaviate version available from GitHub releases.

Inputs

None

Outputs

  • latest_weaviate_version: The latest Weaviate version available from GitHub releases.

Usage

name: Test Get Latest Weaviate Version Action

on:
  push:

jobs:
  version-latest:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2
      
      - name: Test get-latest-weaviate-version action
        id: latest-version
        uses: weaviate/github-common-actions/.github/actions/get-latest-weaviate-version@main
      
      - name: Output latest Weaviate version
        run: echo "Latest Weaviate version: ${{ steps.latest-version.outputs.latest_weaviate_version }}"

About

Reusable composite actions used from other Weaviate workflows to avoid code duplication

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published