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

Return set output #68

Merged
merged 3 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
Github Action to unify and centralize calculating deployment names for all
github actions.


## Motivation

To prevent every author of every application that uses github actions, to copy
Expand All @@ -16,8 +15,14 @@ pattern of deployment names, no matter what stack they're written in.
Basic:

```yaml
- uses: local-ch/calculate-deployment-name-action@v1
- uses: local-ch/calculate-deployment-name-action@v2
id: calculate-deployment-name
with:
app: ${{github.event.repository.name}}
branch: ${{ github.head_ref }}
```

This action export `DEPLOYMENT_NAME` as variable, and could be used anywhere as any other variable with `$DEPLOYMENT_NAME`
Because we have cases like `customer-apps` where we have multiple apps needed to be deployed and their deployment name has to be calculated in same job, there is option to use output of step where you calculate deployment name.

Example: `${{steps.step_id.outputs.name}}`, or if you had action defined like in top example, then you type `${{steps.calculate-deployment-name.outputs.name}}`, because step_id is `calculate-deployment-name`
1 change: 1 addition & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

Loading
Loading