Skip to content

Conversation

Copy link

Copilot AI commented Nov 27, 2025

Creates a reference repository demonstrating GitHub Actions extensibility patterns: reusable workflows, composite actions, and bash-based actions.

Reusable Workflows

  • CI workflow - Configurable Node.js version, optional tests, outputs results
  • Deployment workflow - Multi-environment support (staging/prod), artifact handling, secret management
jobs:
  ci:
    uses: ./.github/workflows/reusable-ci.yml
    with:
      node-version: '20'
      run-tests: true

Composite Actions

  • Setup action - Node.js installation, built-in caching, optional dependency install
  • Build-test action - Configurable commands, coverage upload, status outputs
- uses: ./.github/actions/composite-setup
  with:
    node-version: '18'
    install-dependencies: 'true'

Bash Actions

  • Simple inline - Greeting action demonstrating outputs and step summaries
  • Script-based - File processor (count/list/size) with cross-platform stat compatibility
- uses: ./.github/actions/bash-script
  with:
    path: './'
    pattern: '*.md'
    operation: 'count'

Demo Workflows

Three workflows demonstrate practical usage: chained reusable workflows with deployments, composite action composition, and bash action patterns.

Documentation

  • README.md - Architecture overview, usage examples, best practices
  • CONTRIBUTING.md - Contribution workflow, code style, PR template
  • EXAMPLES.md - Advanced patterns (matrix strategies, conditional execution, chaining)

Security

All workflows use explicit permissions (contents: read) per CodeQL requirements. Bash scripts prioritize Linux syntax for GitHub Actions compatibility.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com//advisories
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Create a repository with examples of reuseable workflows, composites and bash based actions.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 5 commits November 27, 2025 15:50
…mposite actions, and bash actions

Co-authored-by: rbjoergensen <26222239+rbjoergensen@users.noreply.github.com>
Co-authored-by: rbjoergensen <26222239+rbjoergensen@users.noreply.github.com>
…workflow

Co-authored-by: rbjoergensen <26222239+rbjoergensen@users.noreply.github.com>
Co-authored-by: rbjoergensen <26222239+rbjoergensen@users.noreply.github.com>
Co-authored-by: rbjoergensen <26222239+rbjoergensen@users.noreply.github.com>
Copilot AI changed the title [WIP] Create repository for reusable workflows and actions Add GitHub Actions workflow examples repository with reusable workflows, composite actions, and bash-based actions Nov 27, 2025
Copilot AI requested a review from rbjoergensen November 27, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants