'How can i get status of the last Github action run

How can I get status of the last Github action run in order to use it in other workflow? I saw the option with REST but maybe there is another way how to do workflow that manually run only if status of another action successfully.



Solution 1:[1]

 - git log

git log [options] [revision-range] [[--] path?]

Git log is a utility tool to review and read a history of everything that happens to a repository.

Solution 2:[2]

maybe there is another way how to do workflow that manually run only if status of another action successfully.

That is the wokrflow_run trigger I was mentioning here:

name: CI notify

# Only trigger, when the build workflow succeeded
on:
  workflow_run:
    workflows: ["CI build"]
    types:
      - completed

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Harsh Mantri
Solution 2 VonC