Skip to content

Commit

Permalink
fix(IDX): try two checkout steps
Browse files Browse the repository at this point in the history
  • Loading branch information
cgundy committed Dec 9, 2024
1 parent 23dbe61 commit 7288510
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/repo_policies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,26 @@ jobs:
# Dont run this workflow on merge queue
if: ${{ github.event_name != 'merge_group' }}
steps:
# First check out code from public-workflows
- name: Checkout
uses: actions/checkout@v4
with:
repository: dfinity/public-workflows
path: public-workflows

# Then switch back to this repository to make sure it's run from current
- name: Checkout Original Repository
uses: actions/checkout@v4

- name: Python Setup
uses: ./.github/workflows/python-setup
uses: ./public-workflows/.github/workflows/python-setup

- name: Bot Checks
id: bot-checks
run: |
set -euo pipefail
export PYTHONPATH="$PWD/reusable_workflows/"
python reusable_workflows/repo_policies/bot_checks/check_bot_approved_files.py
export PYTHONPATH="$PWD/public-workflows/reusable_workflows/"
python public-workflows/reusable_workflows/repo_policies/bot_checks/check_bot_approved_files.py
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 7288510

Please sign in to comment.