Skip to content

Commit

Permalink
Initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Wacheux committed Mar 15, 2024
1 parent b2c991c commit b9ed04a
Show file tree
Hide file tree
Showing 13 changed files with 5,029 additions and 294 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ jobs:
uses: actions/checkout@v4

- name: Test Local Action
id: test-action
id: get-openapi-spec
uses: ./
with:
milliseconds: 2000
token: ${{ secrets.GITHUB_TOKEN }}

- name: Print Output
id: output
run: echo "${{ steps.test-action.outputs.time }}"
run: echo "${{ steps.test-action.outputs.openapi_spec_url }}"
2 changes: 0 additions & 2 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# Repository CODEOWNERS

* @actions/actions-oss-maintainers
17 changes: 0 additions & 17 deletions __tests__/index.test.ts

This file was deleted.

89 changes: 0 additions & 89 deletions __tests__/main.test.ts

This file was deleted.

25 changes: 0 additions & 25 deletions __tests__/wait.test.ts

This file was deleted.

30 changes: 17 additions & 13 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
name: 'The name of your action here'
description: 'Provide a description here'
author: 'Your name or organization here'

# Add your action's branding here. This will appear on the GitHub Marketplace.
branding:
icon: 'heart'
color: 'red'
name: 'Get OpenAPI Spec URL'
description:
'Retrieves the URL of an OpenAPI spec file from the stack GitHub repository by
reading the releases and tags.'
author: 'Antoine Wacheux <[email protected]>'

# Define your inputs here.
inputs:
milliseconds:
description: 'Your input description here'
organization:
description: 'The name of the GitHub organization'
required: false
default: 'formancehq'
repository:
description: 'The name of the GitHub repository'
required: false
default: 'stack'
token:
description: 'The GitHub token'
required: true
default: '1000'

# Define your outputs here.
outputs:
time:
description: 'Your output description here'
openapi_spec_url:
description: 'The URL of the OpenAPI spec file'

runs:
using: node20
Expand Down
Loading

0 comments on commit b9ed04a

Please sign in to comment.