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
mappsCLI 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_IDis provided)
The app ID to update.
Can be found using themapps app:listcommand 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:listcommand or in the Developer Center. -
NEW(Optional)
Set totrueif 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 truename: 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
mappsCLI 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:importcommand with the provided arguments. - Runs the
mapps app:promotecommand with the if promote=true.