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

Output deployment status #92

Open
wopian opened this issue Jan 22, 2023 · 0 comments
Open

Output deployment status #92

wopian opened this issue Jan 22, 2023 · 0 comments

Comments

@wopian
Copy link

wopian commented Jan 22, 2023

I'm using this action to deploy built files to a branch, which works great.

I've setup the action to use SKIP_EMPTY_COMMITS, however I'm unable to use this to its full effect of reducing unwanted noise.

As the action passes without outputting anything, I cannot skip sending a "restart to pull changes" command to production services.

It would be incredibly useful to have an output that describes the state when the action passess successfully, such as:

state: 'pushed' | 'skipped'

E.g this example that would only run the some/other-action action if this action outputted a pushed state:

jobs:
  deploy:
  ...
  - uses: s0/git-publish-subdir-action@develop
    id: publish # sets custom id for step to reuse its outputs
  - uses: some/other-action@develop
    if: success() && steps.publish.outputs.state == 'pushed' # only gets run if there's "new" changes

Documentation on using Action outputs: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions?tool=bash#about-workflow-commands

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

No branches or pull requests

1 participant