2022-09-23 13:43:07 +00:00
|
|
|
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
|
|
|
|
name: 'Finalize releases on staging'
|
|
|
|
description: 'Custom publish step to finalize releases on balena staging'
|
|
|
|
# these inputs are always provided by flowzone, so they must always be defined on the composite action
|
|
|
|
inputs:
|
|
|
|
json:
|
|
|
|
description: 'JSON stringified object containing all the inputs from the calling workflow'
|
|
|
|
required: true
|
|
|
|
secrets:
|
|
|
|
description: 'JSON stringified object containing all the secrets from the calling workflow'
|
|
|
|
required: true
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: 'composite'
|
|
|
|
steps:
|
2024-05-24 14:09:21 +00:00
|
|
|
- uses: balena-io/deploy-to-balena-action@fd55e44742b6d670abea005ca7193a0f7f71091e # v2.0.68
|
2022-09-23 13:43:07 +00:00
|
|
|
with:
|
2022-09-27 11:57:52 +00:00
|
|
|
balena_token: ${{ fromJSON(inputs.secrets).BALENA_STAGING_TOKEN }}
|
2022-09-23 13:43:07 +00:00
|
|
|
fleet: ${{ env.matrix_value }}
|
|
|
|
environment: balena-staging.com
|
|
|
|
versionbot: false # ignore versionbot branch since the flowzone source is already versioned
|
|
|
|
source: .
|