What i want to reach is encapsulate all CI process in one action.
I transform every step into JS action. There is no problem.
How can i use these JS actions in my action that combines them together?
What can i do now
name: Index on: [push] jobs: build: runs-on: ubuntu-latest container: image: node:lts-alpine steps: - uses: owner/install@master - uses: owner/test@master - uses: owner/build@master - uses: owner/deploy@master
But how turn it into something like this?
name: Index on: [push] uses: service-pipeline@master
The main reason is reduce duplicated code that needs to be maintained.
For example, Jenkins has shared libraries that allows to do such thing.
Does GitHub Actions support such type of encapsulation?