Skip to content

Commit

Permalink
added check whether to execute the organization or user entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
leonsteinhaeuser committed Nov 13, 2021
1 parent 940642d commit 2702916
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action.yml
Expand Up @@ -47,13 +47,15 @@ runs:
core.setFailed('user and organization field is set. Only one is supported.')
- name: "Execute Organization automation"
if: inputs.organization != ''
working-directory: ${{ github.action_path }}
env:
GITHUB_TOKEN: ${{ inputs.gh_token }}
shell: bash
run: "${{ github.action_path }}/entrypoint.sh \"${{ inputs.organization }}\" \"${{ inputs.project_id }}\" \"${{ inputs.resource_node_id }}\" \"${{ inputs.status_value }}\""

- name: "Execute User automation"
if: inputs.user != ''
working-directory: ${{ github.action_path }}
env:
GITHUB_TOKEN: ${{ inputs.gh_token }}
Expand Down

0 comments on commit 2702916

Please sign in to comment.