-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(IDX): reuse check-membership workflow (#104)
* Revert "Revert "feat(IDX): reuse check-membership workflow (#102)" (#103)" This reverts commit ff8baea. * Update check_cla_ruleset.yml * Update check_cla.yml * Update internal_vs_external.yml
- Loading branch information
Showing
3 changed files
with
46 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Workflow to check if a user is a member of the org | ||
|
||
name: Check Membership | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
is_member: | ||
value: ${{ jobs.check-membership.outputs.is_member }} | ||
|
||
jobs: | ||
check-membership: | ||
name: Check Membership | ||
runs-on: ubuntu-latest | ||
# Dont run this workflow on merge queue | ||
if: ${{ github.event_name != 'merge_group' }} | ||
outputs: | ||
is_member: ${{ steps.check-membership.outputs.is_member}} | ||
steps: | ||
- name: Create GitHub App Token | ||
uses: actions/create-github-app-token@v1 | ||
id: app-token | ||
with: | ||
app-id: ${{ vars.CLA_BOT_APP_ID }} | ||
private-key: ${{ secrets.CLA_BOT_PRIVATE_KEY }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'dfinity/public-workflows' | ||
|
||
- name: Python Setup | ||
uses: ./.github/workflows/python-setup | ||
|
||
- name: Check Membership | ||
id: check-membership | ||
run: python reusable_workflows/check_membership/check_membership.py | ||
shell: bash | ||
env: | ||
GH_TOKEN: ${{ steps.app-token.outputs.token }} | ||
GH_ORG: ${{ github.repository_owner }} | ||
USER: ${{ github.event.pull_request.user.login }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters