Skip to content
cloud

GitHub Action

Particle Function

1.0.0 Latest version

Particle Function

cloud

Particle Function

Invoke a Particle Function

Installation

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

              

- name: Particle Function

uses: mattdsteele/particle-action@1.0.0

Learn more about this action in mattdsteele/particle-action

Choose a version

particle-action

Invoke a Particle function as a GitHub Action

Usage

In your GitHub action, to execute the serve function you've registered on a device:

- uses: docker://mattdsteele/particle-github-action:latest
  env:
    FUNCTION_NAME: serve
    DEVICE_ID: ${{ secrets.PARTICLE_DEVICE_ID }}
    ACCESS_TOKEN: ${{ secrets.PARTICLE_ACCESS_TOKEN }}

You can also set uses: mattdsteele/particle-action@master to pull directly from GitHub, but the feedback loop will be much slower (as it builds the Docker container)