question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deploy / Update Workflows via Git, API, CLI

See original GitHub issue

I want to write and test workflows on my local machine, storing the workflow’s code in my existing version control system.

I also want to programmatically deploy workflows using a CLI, for example using a command like pipedream deploy. This way, I can deploy workflows locally or as part of my CI/CD pipeline.

Related: #1139

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:109
  • Comments:22 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
dylburgercommented, Jan 28, 2021

Adding a comment from #857 here. When we support an API / CLI for deploying workflows, we plan to also let you serialize workflows to plaintext (e.g. JavaScript code with some config locally), which means you’d be able to store them in Git. That feature would enable the request below.

"For testing my workflow with a real case, I need to deploy my code, so everytime I test something I create a new version of the workflow. My workflow ends up with lots of versions. Most of them have bugs or are here for testing/debugging Sometimes I want to go back to a specific version but I can’t remember which one it was, it can be 10 versions back or more, it’s hard to identify versions and difference between them

Describe the solution you’d like Something closer to real code versioning, so more like git commits:

being able to add a comment to a version. This would be a “quick win”, as I could just tag a revision that I know is working before creating more revisions, So I can easily come back to it even if I created many revisions after. Nice to have: being able to compare 2 versions of a workflow"

4reactions
charlie-scommented, May 13, 2022

@sjn001tvh and anyone else that needs it, you can hit https://api.pipedream.com/v1/users/me/workflows (use the Authorization: Bearer ... header from the settings page) to download a JSON array of your workflows, including custom code in any components.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automate your CI/CD workflow using CLI GitHub Actions
GitHub Actions help you automate your software development workflows in the same place you store code and collaborate on pull requests and issues....
Read more >
Work with GitHub Actions in your terminal with GitHub CLI
Runs in GitHub Actions are defined by workflow files in YAML format living in .github/workflows in your repository. A workflow file describes a ......
Read more >
Using the PlanetScale CLI with GitHub Actions workflows
Steps to create your own GitHub Action workflow with pscale CLI · { · DB_NAME=$1 · BRANCH_NAME=$2 · ORG_NAME=$3 · `pscale deploy-request create...
Read more >
Configure CI/CD with GitHub Actions - Azure App Service
You can quickly get started with GitHub Actions by using the App Service Deployment Center. This will automatically generate a workflow file ...
Read more >
Using the GitHub Checks API to Link Workflow Statuses in a PR
The label update workflow calls the deployment workflow via the workflow_dispatch event; The label job shows up as a status check in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found