mirror of https://github.com/ohmyzsh/ohmyzsh.git
better use checkout
This commit is contained in:
parent
c9282c5613
commit
4595a6ffe4
|
@ -42,7 +42,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set up git repository
|
- name: Set up git repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
|
@ -55,11 +55,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd tools/alias_collision/
|
cd tools/alias_collision/
|
||||||
python -m pytest
|
python -m pytest
|
||||||
|
- name: Checkout target branch
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
path: ohmyzsh-target-branch
|
||||||
|
ref: ${GITHUB_BASE_REF}
|
||||||
- name: Check for alias collisions on target branch
|
- name: Check for alias collisions on target branch
|
||||||
run: |
|
run: python ohmyzsh-target-branch/tools/alias_collision/check_alias_collision.py plugins --known-collisions-output-path known_alias_collisions.json
|
||||||
git checkout ${GITHUB_BASE_REF}
|
|
||||||
python tools/alias_collision/check_alias_collision.py plugins --known-collisions-output-path known_alias_collisions.json
|
|
||||||
- name: Compare known collisions to new collisions on source branch
|
- name: Compare known collisions to new collisions on source branch
|
||||||
run: |
|
run: python tools/alias_collision/check_alias_collision.py plugins --known-collisions known_alias_collisions.json
|
||||||
git checkout ${GITHUB_HEAD_REF}
|
|
||||||
python tools/alias_collision/check_alias_collision.py plugins --known-collisions known_alias_collisions.json
|
|
||||||
|
|
Loading…
Reference in New Issue