Skip to content

Commit ff8baea

Browse files
authored
Revert "feat(IDX): reuse check-membership workflow (#102)" (#103)
This reverts commit f5f67a6.
1 parent f5f67a6 commit ff8baea

File tree

4 files changed

+61
-47
lines changed

4 files changed

+61
-47
lines changed

.github/workflows/check_cla.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,36 @@ on:
77

88
jobs:
99
check-membership:
10-
uses: ./.github/workflows/check_membership.yml
11-
secrets: inherit
10+
name: Check Membership
11+
runs-on: ubuntu-latest
12+
# Dont run this workflow on merge queue
13+
if: ${{ github.event_name != 'merge_group' }}
14+
outputs:
15+
is_member: ${{ steps.check-membership.outputs.is_member}}
16+
steps:
17+
- name: Create GitHub App Token
18+
uses: actions/create-github-app-token@v1
19+
id: app-token
20+
with:
21+
app-id: ${{ vars.CLA_BOT_APP_ID }}
22+
private-key: ${{ secrets.CLA_BOT_PRIVATE_KEY }}
23+
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
with:
27+
repository: 'dfinity/public-workflows'
28+
29+
- name: Python Setup
30+
uses: ./.github/workflows/python-setup
31+
32+
- name: Check Membership
33+
id: check-membership
34+
run: python reusable_workflows/check_membership/check_membership.py
35+
shell: bash
36+
env:
37+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
38+
GH_ORG: ${{ github.repository_owner }}
39+
USER: ${{ github.event.pull_request.user.login }}
1240

1341
check-external-contributions:
1442
name: Check External Contributions

.github/workflows/check_cla_ruleset.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ on:
1313

1414
jobs:
1515
call-check-cla:
16-
uses: .github/workflows/check_cla.yml
16+
uses: dfinity/public-workflows/.github/workflows/check_cla.yml@main
1717
secrets: inherit

.github/workflows/check_membership.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/internal_vs_external.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,36 @@ permissions:
1515

1616
jobs:
1717
check-membership:
18-
uses: ./.github/workflows/check_membership.yml
19-
secrets: inherit
18+
name: Check Membership
19+
runs-on: ubuntu-latest
20+
# Dont run this workflow on merge queue
21+
if: ${{ github.event_name != 'merge_group' }}
22+
outputs:
23+
is_member: ${{ steps.check-membership.outputs.is_member}}
24+
steps:
25+
- name: Create GitHub App Token
26+
uses: actions/create-github-app-token@v1
27+
id: app-token
28+
with:
29+
app-id: ${{ vars.CLA_BOT_APP_ID }}
30+
private-key: ${{ secrets.CLA_BOT_PRIVATE_KEY }}
31+
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
with:
35+
repository: 'dfinity/public-workflows'
36+
37+
- name: Python Setup
38+
uses: ./.github/workflows/python-setup
39+
40+
- name: Check Membership
41+
id: check-membership
42+
run: python reusable_workflows/check_membership/check_membership.py
43+
shell: bash
44+
env:
45+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
46+
GH_ORG: ${{ github.repository_owner }}
47+
USER: ${{ github.event.pull_request.user.login }}
2048

2149
revoke-approvals:
2250
name: Revoke Approvals

0 commit comments

Comments
 (0)