This repo contains the GitHub Action that can be used to push Superblocks application changes from a connected GitHub repo to Superblocks.
See the Source Control documentation for more information.
Push Applications, Workflows, and Scheduled Jobs to Superblocks
name: Sync Applications, Workflows, and Scheduled Jobs changes to Superblocks
on: [push]
jobs:
superblocks-push:
runs-on: ubuntu-latest
name: Push to Superblocks
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push
uses: superblocksteam/import-action@v1
id: push
with:
token: ${{ secrets.SUPERBLOCKS_TOKEN }}
The above shows a standalone workflow. If you want to incorporate it as part of an existing workflow/job, simply copy the checkout and push steps into your workflow.
You can also pin to a specific release version in the format @v1.x.x.
If your organization uses Superblocks EU, set the domain
to eu.superblocks.com
in the Push
step.
...
- name: Push
uses: superblocksteam/import-action@v1
id: push
with:
token: ${{ secrets.SUPERBLOCKS_TOKEN }}
domain: eu.superblocks.com
INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
---|---|---|---|---|
domain | string | false | "app.superblocks.com" |
The Superblocks domain where resources are hosted |
path | string | false | "." |
The relative path from repo root to the Superblocks root directory. This is where the ~.superblocks/superblocks.json config file is located. |
sha | string | false | "HEAD" |
Commit to push changes for |
token | string | true | The Superblocks access token to use |
No outputs.