Skip to main content

Tool for flattening include statements in GitHub actions workflow.yml files.

Project description

actions-includes

Allows including an action inside another action (by preprocessing the Yaml file).

Instead of using uses or run in your action step, use the keyword includes.

Once you are using the includes argument, the workflows can be expanded using the tool like follows;

# python -m actions_include <input-workflow-with-includes> <output-workflow-flattened>
python -m actions_includes ./.github/workflows-src/workflow-a.yml ./.github/workflows/workflow-a.yml
steps:
- name: Other step
  run: |
    command

- includes: {action-name}
  with:
    {inputs}

- name: Other step
  run: |
    command

The {action-name} follows the same syntax as the standard GitHub action uses and the action referenced should look exactly like a GitHub "composite action" except runs.using should be includes.

For example;

  • {owner}/{repo}@{ref} - Public action in github.com/{owner}/{repo}
  • {owner}/{repo}/{path}@{ref} - Public action under {path} in github.com/{owner}/{repo}.
  • ./{path} - Local action under local {path}, IE ./.github/actions/my-action`.

As it only makes sense to reference composite actions, the docker:// form isn't supported.

As you frequently want to include local actions, actions-includes extends the {action-name} syntax to also support;

  • /{name} - Local action under ./.github/actions/{name}.

This is how composite actions should have worked.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

actions-includes-0.0.post44.tar.gz (18.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

actions_includes-0.0.post44-py3.9.egg (16.8 kB view details)

Uploaded Egg

actions_includes-0.0.post44-py3.8.egg (16.8 kB view details)

Uploaded Egg

actions_includes-0.0.post44-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file actions-includes-0.0.post44.tar.gz.

File metadata

  • Download URL: actions-includes-0.0.post44.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for actions-includes-0.0.post44.tar.gz
Algorithm Hash digest
SHA256 8111669c6ffb1944b828d8a70df5c4ae5f34745bf90a4d64dbe52ddfddd1a8a6
MD5 aedffb9507f16fd6107c92efe7bef12d
BLAKE2b-256 3b43b9c300078735290f102790d28e193e41a4d83b088c47097b6e13703d2c2f

See more details on using hashes here.

File details

Details for the file actions_includes-0.0.post44-py3.9.egg.

File metadata

  • Download URL: actions_includes-0.0.post44-py3.9.egg
  • Upload date:
  • Size: 16.8 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for actions_includes-0.0.post44-py3.9.egg
Algorithm Hash digest
SHA256 ebe0b0d6f887a879618bba378785296ad337c8746fdf519cf06b5a66743c0e8e
MD5 b7bd6e7049d95730320ee87540de8a07
BLAKE2b-256 b447792ae6dab24fe8a10e84c673050264c36aee5fe07d5a4b12d6895d2b2bca

See more details on using hashes here.

File details

Details for the file actions_includes-0.0.post44-py3.8.egg.

File metadata

  • Download URL: actions_includes-0.0.post44-py3.8.egg
  • Upload date:
  • Size: 16.8 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.7

File hashes

Hashes for actions_includes-0.0.post44-py3.8.egg
Algorithm Hash digest
SHA256 528106ce88807cc9b39f4c7ba26b350839f75c0cc78cc78a7be9d8cf2cc35240
MD5 14d33495c305344c53cfe7c5479204bf
BLAKE2b-256 fc7344ef5e7d268ec4166c8c457f8ead750c6fa3229589d8346afe05d05b26e7

See more details on using hashes here.

File details

Details for the file actions_includes-0.0.post44-py3-none-any.whl.

File metadata

  • Download URL: actions_includes-0.0.post44-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.7

File hashes

Hashes for actions_includes-0.0.post44-py3-none-any.whl
Algorithm Hash digest
SHA256 aa5fe93c658113ca8f1e47b886e20d1ffa3a8d754c7b00b3261d3720a791f133
MD5 4a7e64c9b97115e7006e9e807e7445f7
BLAKE2b-256 9348b20098d19d74a77ee976b49a4a80596a0deb6ca64a7a5ae2802f178002c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page