Skip to content

Commit

Permalink
Update integrate.yml
Browse files Browse the repository at this point in the history
Check out PR explicitly
  • Loading branch information
danielsilva authored Dec 4, 2023
1 parent 8010e0b commit b6c1186
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ jobs:
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/integrate')
runs-on: ubuntu-latest
steps:
- name: Checkout the latest code
- name: Clone Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{env.PR_REF}}
repository: ${{github.event.issue.pull_request.head.repo.full_name}}
- name: Checkout Pull Request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_URL="${{ github.event.issue.pull_request.url }}"
PR_NUM=${PR_URL##*/}
hub pr checkout $PR_NUM
- uses: ruby/setup-ruby@master
- name: Install gems
run: bundle install
Expand Down

0 comments on commit b6c1186

Please sign in to comment.