Skip to content

jtenholder/ghaa_01_04_composite_action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

01_04-composite-actions

Use these files to test a composite action.

  1. Create TWO new repos:
    • one to host the composite action
    • one to host the workflow that uses the action
  2. Upload the file action.yml into the root of the compsite action repo.
  3. Upload the following files into the root of the workflow repo:
    main.py
    requirements.txt
    
  4. Edit the file composite-action-workflow.yml to replace the following placeholders with the correct values:
    YOUR_GITHUB_USER_NAME
    YOUR_COMPOSITE_ACTION_REPO_NAME
    
  5. If your username is octocat and the composite repo name is awesome-action, your composite-action-workflow.yml should now include a line as follows:
    uses: octocat/awesome-action@main
    
  6. Upload the file composite-action-workflow.yml into the .github/workflows directory of the composite action repo.
  7. Once the workflow file is commited, the workflow should be triggered by a push event.
  8. Confirm the workflow runs as expected and includes output from the composite action.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published