Skip to content

dmas-at-wiris/last-workflow-status

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

License: MIT

Last workflow status

Simple GitHub action to get previous workflow conclusion/status. Was inspired by sending notification after build status changing in Travis CI.

notifications:
  slack:
    rooms: slack_room
    on_success: change

Inputs:

github_token

  • Secret GitHub API token to use for making API requests.
    default: ${{ github.token }}

Outputs:

last_status

  • Conclusion value of last workflow. success | failure

Example usage

jobs:
  yor-job:
    runs-on: ubuntu-latest
    steps:
      - name: Get previous workflow status
        uses: Mercymeilya/[email protected]
        id: last_status
        with:
          - github_token: ${{ secrets.GITHUB_TOKEN }}

      - name: Any action
        run: slyle-check.sh

      - name: Build fixed slack message
        uses: rtCamp/[email protected]
        if: ${{ success() && steps.last_status.outputs.last_status == 'failure' }}
        env: 
          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
          SLACK_MESSAGE: 'Style check fixed now!'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published