Skip to content

Commit 10d46ad

Browse files
authored
chore(IDX): workflow fixes (#153)
1 parent 2b3b7a1 commit 10d46ad

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/check_is_bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
# Dont run this workflow on merge queue
1616
if: ${{ github.event_name != 'merge_group' }}
1717
outputs:
18-
is_member: ${{ steps.check-is-bot.outputs.is_bot}}
18+
is_bot: ${{ steps.check-is-bot.outputs.is_bot}}
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v4

.github/workflows/repo_policies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Check Bot Policies
1414
runs-on: ubuntu-latest
1515
needs: check-is-bot
16-
if: ${{ needs.check-is-bot.outputs.is_bot == 'true' && needs.check-is-bot.result == 'success' }}
16+
if: ${{ needs.check-is-bot.outputs.is_bot != 'false' }}
1717
steps:
1818
# First check out code from public-workflows
1919
- name: Checkout

reusable_workflows/repo_policies/check_is_bot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ def main() -> None:
88

99
is_bot = is_approved_bot(user)
1010
os.system(f"""echo 'is_bot={is_bot}' >> $GITHUB_OUTPUT""")
11+
12+
if __name__ == "__main__":
13+
main()

0 commit comments

Comments
 (0)