Skip to content

abiwinanda/composite-post-gha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Composite Post GitHub Action

Sample GHA workflow that demonstrates how to create a composite action that incorporate post steps.

The underlying composite action (.github/actions/cache) is using another composite action that allows it to create post steps.

name: Cache

description: "Dummy action to perform cache."

runs:
  using: "composite"
  steps:
    - name: Cache
      uses: ./.github/actions/with-post-steps
      with:
        main: echo "Restoring cache..."
        post: echo "Rebuilding cache..."

Notice that multiple command can be used in the main: and post:

name: Cache

description: "Dummy action to perform cache."

runs:
  using: "composite"
  steps:
    - name: Cache
      uses: ./.github/actions/with-post-steps
      with:
        main: |
          echo "do something"
          echo "do something else"
          ...
        post: |
          echo "do something"
          echo "do something else"
          ...

Reference

About

demonstrate composite post action in github

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors