Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mgwalker/action-is-in-orgs
https://github.com/mgwalker/action-is-in-orgs
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mgwalker/action-is-in-orgs
- Owner: mgwalker
- Created: 2021-09-16T01:30:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-08T22:21:41.000Z (about 2 years ago)
- Last Synced: 2024-04-15T01:57:13.845Z (9 months ago)
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub Action: is-in-orgs
An action to check if the user who initiated it is a member of one of the
specified orgs. If the user is in one of those orgs, this action will succeed;
otherwise, it will fail. A handy way to do some light authorization.## Usage
```yml
jobs:
myJob:
runs-on: ubuntu-latest
name: the job I'm running
steps:
- name: check org membership
id: org-check
uses: mgwalker/[email protected]
with:
orgs: org1 org2 org3
- if: ${{ steps.org-check.in_orgs == 'true' }}
name: do a thing
run: "my next command"
```#### Parameters
|name|description|
|---|---|
|`orgs`|A space-delimited list of organizations to check against. **Required**#### Outputs
|name|description|
|---|---|
|`in_orgs`|A boolean indicating whether the user is a member of any of the specified orgs.## Version history
- **2.0.1**
- no longer fails if the user/bot/entity that initiated the action is not a
member of one of the specified orgs
- adds a boolean output indicating whether they belong to the org
- **2.0**
- we do not talk about 2.0
- **1.0** - Initial release. Nothing has changed yet!