Coder Social home page Coder Social logo

actionsflow-action's Introduction

Actionsflow Action

Actionsflow action for Github. With actionsflow/actionsflow-action@v1, you can speed up your Actionsflow workflow build. We will automatically select the best build strategy, using local build or action build, if you use a third-party trigger, then the default will use local build, that is, install npm dependencies, and use local actionsflow to build, if You only use the official triggers, then we will only use the action to build, no need to download anything.

All build strategies will use caching, so even if you use third-party triggers, we will cache node_modules to speed up the build.

Of course, you can specify the build method, such as using only local build, or only using action build.

You can also specify the commands and parameters of the build through args

Inputs

inputs:
  using:
    descript: "actionsflow build runner using, the default value is `auto`, you can also use `local`, `action`"
    required: false
    default: "auto"
  args:
    description: "actionsflow CLI command, the default value is `build`, you can specify it like `build --verbose`"
    required: false
    default: "build"
  json-secrets:
    description: secrets context in json format
    required: false
    default: ""
  json-github:
    description: github context in json format
    required: false
    default: ""

Options

using

Actionsflow build runner using, the default value is auto, you can also use local, action

args

Actionsflow CLI command, the default value is build, you can specify it like build --verbose

Learn more about args, please see here

json-secrets

Secrets context in json format, you should always use ${{ toJSON(secrets) }}

json-github

github context in json format, you should always use ${{ toJSON(github) }}

Outputs

outputs:
  success:
    description: "If the build status is a success. The value can be 'true', or 'false', if the build failed, the action outcome will be set failed"

Example usage

uses: actionsflow/actionsflow-action@v1
with:
  args: build
  json-secrets: ${{ toJSON(secrets) }}
  json-github: ${{ toJSON(github) }}

actionsflow-action's People

Contributors

github-actions[bot] avatar theowenyoung avatar zhgqthomas avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

actionsflow-action's Issues

Flow fails - Error: HttpError: Server Error

Description

  • My actionflow setup randomly fails. Some days more often than the others
  • I do not see any useful error from the Actions output

Action file:

https://github.com/quicoto/actionsflow/blob/main/.github/workflows/actionsflow.yml

Current

Action fails with this output:

Error: HttpError: Server Error
Error: Actionsflow error: HttpError: Server Error

Example failed action: https://github.com/quicoto/actionsflow/actions/runs/3328329214/jobs/5504196930

Expectation

It used to never fail until a few days ago.

  • Is there a way to get more verbose error output?

Add an output with the number of total items found

Currently, the output states if the build was successful or not.

But sometimes the build is successful, although no new items have been found (in the case of RSS polling for example).

In that case, having this kind of informations could be used as a condition to run the subsequent steps (setup act, etc.).

If there is no new item, I could totally skip the next steps and end the task even sooner.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.