Skip to content

📝 A companion example to blog post "Package GitHub Actions automatically with GitHub Actions"

License

Notifications You must be signed in to change notification settings

prompt/examples-action-packaging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Action

Example Action is a companion to Package GitHub Actions automatically with GitHub Actions which describes how to automatically package GitHub Actions using GitHub Actions, as an alternative GitHub's recommended strategy.

Project Structure

Workflows

How To Demo

  • Fork the repository
  • Create a release branch from main
  • Add a commit key (secret, deploy key)

Synchronising

  • Push changes to main and observe release is updated with changes

Packaging

  • Push changes to greeter.ts on main and observe release is updated with a new dist build

Tag Validation

  • Tag a release on main and observe it is removed
  • Tag a release on release and observe it is persisted

Greet With Action

on: [push]

jobs:
  greet-people:
    runs-on: ubuntu-latest
    steps:
      - id: greeting-actor
        uses: ./
      - name: Greet the user that initiated the workflow run
        run: echo {{ steps.greeting-actor.outputs.greeting }} # Hello, shrink!
      - id: greeting-person
        uses: ./
        with:
          name: "Alice T. Ester"
      - name: Greet the person identified by name
        run: echo {{ steps.greeting-person.outputs.greeting }} # Hello, Alice T. Ester!

About

📝 A companion example to blog post "Package GitHub Actions automatically with GitHub Actions"

Topics

Resources

License

Stars

Watchers

Forks