Skip to content

Latest commit

 

History

History
77 lines (54 loc) · 2.06 KB

README.md

File metadata and controls

77 lines (54 loc) · 2.06 KB

nullplatform

Nullplatform Parameter GitHub Action

Overview

The "Nullplatform Parameter" GitHub Action allows you to query and retrieve build parameters for a nullplatform application. It simplifies the process of fetching and using these parameters within your GitHub Actions workflows.

Table of Contents

Inputs

application-id

  • Description: The application ID to query build parameters.
  • Required: Yes

name

  • Description: The parameter name to query. (Optional)
  • Required: No

Outputs

This GitHub Action dynamically generates outputs based on the retrieved build parameters. Each build parameter will be available as an output and as a environment variable.

Usage

Here's a common use case for this GitHub Action:

Use Case: Query Build Parameters

name: Query Nullplatform Build Parameters

on:
  push:
    branches:
      - main

jobs:
  query_parameters:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout Repository
        uses: actions/checkout@v4

      - name: Query Nullplatform Build Parameters
        id: query-params
        uses: nullplatform/github-action-parameter@v1
        with:
          application-id: your-app-id

      - name: Display Application Parameters
        run: |
          echo "Retrieved Application Parameters:"
          echo "Parameter Name: your-parameter-name"
          echo "Parameter Value: ${{ steps.query-params.outputs.your-parameter-name }}"

In this example, the GitHub Action queries build parameters for a nullplatform application. You can customize it according to your workflow's requirements by specifying the application-id and optionally the name of the parameter you want to query.

License

This GitHub Action is licensed under the MIT License.