GithubHelp home page GithubHelp logo

isabella232 / action-post-run Goto Github PK

View Code? Open in Web Editor NEW

This project forked from webiny/action-post-run

0.0 0.0 0.0 242 KB

Enables executing custom commands once a workflow job has ended.

JavaScript 45.34% TypeScript 54.66%

action-post-run's Introduction

Post-Run GitHub action

A simple GitHub action that enables running post-run steps, once a workflow job has ended.

Inputs

run

Required A command that needs to be run. Default echo "This is a post-run step...".

Example usage

Latest version: 2.0.1

name: Build

on:
  push:
    branches: [ master ]

env:
  GH_TOKEN: ${{ secrets.GH_TOKEN }}

jobs:
  something:
    name: Do something...
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
    
      - uses: webiny/[email protected]
        id: post-run-command
        with:
          run: echo "this thing works!"

      - uses: webiny/[email protected]
        id: another-post-run-command
        with:
          run: echo "this thing works again!"
          working-directory: not-required-but-you-can-provide-it

      - name: 'Running an non-existing command will fail...'
        run: run something that does not exist;

This above configuration will produce the following:

image

ℹī¸ Note the order of execution. The run: echo "this thing works again!" was executed before the run: echo "this thing works!" command.

action-post-run's People

Contributors

adrians5j avatar keeshux avatar

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.