Skip to content

Using a composite action from a reusable workflow #123261

Closed Answered by kalote
kalote asked this question in Actions
Discussion options

You must be logged in to vote

Just to close this discussion, here is the solution I've implemented. Basically, I have to clone the github-action repo in my reusable workflow so that I can access the composite action.

3 github wf:

  • 1 caller (the workflow use by all my apps)
  • 1 callee (reusable workflow in the github-action repo)
  • 1 composite (to divide my reusable workflow in smaller pieces, in the github-action repo)

Caller

name: Build and push image

on:
  push:
    branches:
      - main

jobs:
  build-and-push:
    permissions:
      id-token: write
      contents: read
    uses: myorg/github-actions/.github/workflows/build-and-push-docker.yaml@main
    with:
      registry: xxx.dkr.ecr.us-east-2.amazonaws.com/docke…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@kalote
Comment options

@kalote
Comment options

Answer selected by kalote
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question
2 participants