The "Nullplatform Build" GitHub Action allows you to query and interact with nullplatform application builds. It provides actions for creating new builds, updating existing builds, and managing associated assets. This action simplifies the process of working with Nullplatform build data within your workflows.
- Description: The build action controls what happens to the build. Can be one of:
create
,update
. - Required: Yes
- Description: The build id.
- Required: No if creating a build, Yes if updating a build
- Description: The build status. Can be one of:
pending
,in_progress
,failed
,successful
. - Required: No if creating a build, Yes if updating a build
- Description: The application id to build.
- Required: Yes if creating a build, No if updating a build
- Description: The SHA commit. Defaults to current SHA commit
- Required: No
- Description: The commit web link.
- Required: No
- Description: The build description. Defaults to the commit message.
- Required: No
- Description: The build branch. Defaults to the current workflow execution branch.
- Required: No
- Description: The image repository URL where the build asset was uploaded.
- Required: No
- Description: The build id.
- Description: The new build status. Can be one of:
pending
,in_progress
,failed
,successful
.
- Description: The application id built.
Here are some common use cases for this GitHub Action:
name: Create New Nullplatform Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to Nullplatform
id: login
uses: nullplatform/github-action-login@v1
with:
api-key: ${{ secrets.NULLPLATFORM_API_KEY }}
- name: Create New Nullplatform Build
id: create-build
uses: nullplatform/github-action-build@v1
with:
action: create
application-id: your-app-id
- name: Use Build ID
run: echo "New Build ID: ${{ steps.create-build.outputs.id }}"
In this example, the GitHub Action creates a new nullplatform build with a 'pending' status using the provided inputs.
name: Update Nullplatform Build Status
on:
pull_request:
types:
- closed
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to Nullplatform
id: login
uses: nullplatform/github-action-login@v1
with:
api-key: ${{ secrets.NULLPLATFORM_API_KEY }}
- name: Update Nullplatform Build Status
id: update-build
uses: nullplatform/github-action-build@v1
with:
action: update
id: your-build-id
status: successful
- name: Use Updated Status
run: echo "Updated Status: ${{ steps.update-build.outputs.status }}"
In this example, the GitHub Action updates an existing nullplatform build's status to 'successful' when a pull request is closed.
This GitHub Action is licensed under the MIT License.