Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for regular workflows? #240

Closed
gj250116 opened this issue Jun 21, 2022 · 7 comments
Closed

Support for regular workflows? #240

gj250116 opened this issue Jun 21, 2022 · 7 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@gj250116
Copy link

gj250116 commented Jun 21, 2022

Is there support for workflows apart from regular actions?
For example:

name: Workflow

on:
  workflow_call:
    inputs:
      input1:
        description: "Input1"
        required: false

    outputs:
      output1:
        description: "Output1"
        required: false

jobs:
  backend-deploy:
    runs-on: ubuntu-latest
    steps: 
      - name: 'Checkout' 
        uses: actions/checkout@v2

This errors out with: Cannot read properties of undefined (reading 'using')

@geirsagberg
Copy link

Maybe the script could detect if it is an action or a workflow, e.g. looking for on:?

@deavisdude
Copy link

This is exactly the functionality I am looking for, has anyone figured out a solution? Would love to have this work for reusable workflows as well

@npalm
Copy link
Owner

npalm commented Oct 10, 2022

No support yet, but open to any improvement.

@ali-kafel
Copy link

I'm bumping this as well, would be great feature for reusable workflows

@npalm npalm added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Mar 2, 2023
@npalm
Copy link
Owner

npalm commented Apr 7, 2023

Never thought about this but would be nice if we can support reusable workflwos to generate documentation

@larmitage-bjss
Copy link
Contributor

Hello, I'm taking a look at this. Not written a js/ts cli app before though so would love feedback when I can put up a first draft PR please

larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
npalmGH-240 update CONTRIBUTING where command does not work and add additi…
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
npalmGH-240 add option to have a top level header containing the name
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 13, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 14, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 14, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 14, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 15, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 15, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 15, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 15, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 15, 2024
npalm added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 15, 2024
npalm added a commit that referenced this issue Feb 15, 2024
* GH-240 update CONTRIBUTING where command does not work and add additional helper scripts

* GH-240 add option to have a top level header containing the name

* GH-240 add header to readme and tests

* GH-240 update name header shorthand to nh

* GH-240 update name header shorthand to n

---------

Co-authored-by: Niek Palm <npalm@users.noreply.github.com>
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 15, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 15, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 15, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 15, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 15, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 15, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 15, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 15, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 15, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Feb 16, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Mar 5, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Mar 5, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Mar 5, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Mar 5, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Mar 5, 2024
larmitage-bjss added a commit to larmitage-bjss/fork-action-docs that referenced this issue Mar 5, 2024
npalm added a commit to larmitage-bjss/fork-action-docs that referenced this issue Mar 5, 2024
npalm added a commit to larmitage-bjss/fork-action-docs that referenced this issue Mar 6, 2024
npalm added a commit that referenced this issue Mar 6, 2024
* GH-240 upgrade packages to remove vulnerabilities

* GH-240 move test fixtures to folders to separate action and workflow tests

* GH-240 duplicate tests for workflows

* GH-420 add run scripts to run action/workflow manually and run tests for action/workflow separately

* WIP

* GH-240 update CONTRIBUTING where command does not work and add additional helper scripts

* GH-240 add option to have a top level header containing the name

* GH-240 add header to readme and tests

* Remove unused files

* GH-240 fix error with enum

* GH-240 ability to display workflow inputs and outputs

* GH-240 add usage

* GH-240 start adding workflow tests

* GH-240 get a few more workflow tests working

* Update action test files with main

* GH-240 fix test for readme

* GH-240 all fields readme test working

* GH-240 sort out renaming of action > workflow of test files

* GH-240 fix crlf test

* GH-240 all tests fixed

* GH-240 amend readme for workflow functionality

* GH-240 add back in new lines at end of files

* GH-240 tweak to readme to clarify description is only for actions

* GH-240 Fix tests

* GH-240 fix workflow syntax

* GH-240 add source option and deprecate action option

* GH-240 Make replace in readme backwards compatible with source/action

* GH-240 add backwards compatibility test

* Fix missed -a to -s in readme

Co-authored-by: Niek Palm <npalm@users.noreply.github.com>

* GH-420 rename ActionYml to YmlStructure, and actionFile to sourceFile

---------

Co-authored-by: Niek Palm <npalm@users.noreply.github.com>
npalm pushed a commit that referenced this issue Mar 9, 2024
…one go (#537)

* GH-240 upgrade packages to remove vulnerabilities

* GH-240 move test fixtures to folders to separate action and workflow tests

* GH-240 duplicate tests for workflows

* GH-420 add run scripts to run action/workflow manually and run tests for action/workflow separately

* WIP

* GH-240 update CONTRIBUTING where command does not work and add additional helper scripts

* GH-240 add option to have a top level header containing the name

* GH-240 add header to readme and tests

* Remove unused files

* GH-240 fix error with enum

* GH-240 ability to display workflow inputs and outputs

* GH-240 add usage

* GH-240 start adding workflow tests

* GH-240 get a few more workflow tests working

* Update action test files with main

* GH-240 fix test for readme

* GH-240 all fields readme test working

* GH-240 sort out renaming of action > workflow of test files

* GH-240 fix crlf test

* GH-240 all tests fixed

* GH-240 amend readme for workflow functionality

* GH-240 add back in new lines at end of files

* GH-240 tweak to readme to clarify description is only for actions

* Add 'all' option to add docs to readme

* Tidy up from merge
@npalm
Copy link
Owner

npalm commented Mar 10, 2024

supported since release 2.2.0

@npalm npalm closed this as completed Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants