Skip to content

Commit

Permalink
[TLM CI] Actions/checkout correct branch (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulya-tkch authored Sep 13, 2024
1 parent d0199df commit cea4e78
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci-test-tlm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
- "3.11"
- "3.12"
steps:
- name: Check out latest commit
uses: actions/checkout@v4
- name: Checkout latest commit to pull request
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
ref: refs/pull/${{ github.event.issue.number }}/head
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
Expand Down Expand Up @@ -57,10 +57,10 @@ jobs:
python:
- "3.11"
steps:
- name: Check out latest commit
uses: actions/checkout@v4
- name: Checkout latest commit to pull request
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
ref: refs/pull/${{ github.event.issue.number }}/head
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
Expand All @@ -86,8 +86,8 @@ jobs:
runs-on: ubuntu-latest
if: github.event.comment.body == '/test-tlm' # Only run if the comment is "/test-tlm"
steps:
- name: Log PR Number
run: echo "PR Number is ${{ github.event.pull_request.number }}"
- name: Log PR Number and Pull request ref
run: echo "PR Number is ${{ github.event.issue.number }}. PR ref is refs/pull/${{ github.event.issue.number }}/head."
- name: Find Comment
id: fc
uses: peter-evans/find-comment@v3
Expand Down

0 comments on commit cea4e78

Please sign in to comment.