This script is used to import your manifest to your Monday app using the mapps
CLI tool.
Ensure you have the following:
- A valid Monday developer token.
- Access to the
mapps
CLI installed and configured on your machine.
-
TOKEN
(Required)
Your Monday developer token.
Can be acquired here: https://.monday.com/apps/manage/tokens -
APP_ID
(Mandatory ifVERSION_ID
is provided)
The app ID to update.
Can be found using themapps app:list
command or in the Developer Center. -
VERSION_ID
(Optional)
The version ID to update, will create new version if this param will be empty.
Can be found using themapps app-version:list
command or in the Developer Center. -
NEW
(Optional)
Set totrue
if you want to create a new app. -
MANIFEST_PATH
(Required)
The path to the manifest file (./manifest.json). -
PROMOTE
(Optional)
'true' for promoting the version to live after importing
./mapps_deploy_script.sh <TOKEN> <APP_ID> <VERSION_ID> <NEW> <MANIFEST_PATH> <PROMOTE>
./mapps_deploy_script.sh abc123-token 10110073 20210004 false ./manifest.json true
name: Import app from manifest
on:
push:
branches:
- main
jobs:
import:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Import app from manifest
run: |
./mapps_deploy_script.sh ${{ secrets.MONDAY_TOKEN }} 10110073 20210004 false ./manifest.json true
- Initializes the
mapps
CLI with the provided token. - Checks and prepares arguments for:
- App ID (
-a
) - Version ID (
-i
) - New app creation (
-n
) - Manifest path (
-p
)
- App ID (
- Runs the
mapps manifest:import
command with the provided arguments. - Runs the
mapps app:promote
command with the if promote=true.