2025-02-14 06:54:56 +01:00
name : Run Check Source Action
on :
workflow_call :
jobs :
review :
2025-03-06 02:22:33 +01:00
runs-on : tumbleweed
2025-02-14 06:54:56 +01:00
steps :
2025-02-14 09:41:37 +01:00
- name : Checkout base
2025-03-06 02:29:40 +01:00
uses : https://github.com/actions/checkout@v4
2025-02-14 09:41:37 +01:00
with :
ref : ${{ github.base_ref }}
path : base
- name : Checkout head
2025-03-06 02:29:40 +01:00
uses : https://github.com/actions/checkout@v4
2025-02-14 09:41:37 +01:00
with :
ref : ${{ github.head_ref }}
path : head
2025-02-14 06:54:56 +01:00
- name : Checkout release tools
2025-03-06 02:29:40 +01:00
uses : https://github.com/actions/checkout@v4
2025-02-14 06:54:56 +01:00
with :
2025-03-06 02:22:33 +01:00
repository : yudaike/openSUSE-release-tools
2025-02-14 06:54:56 +01:00
ref : vcs-refactor
path : release_tools
- name : Set up Python
2025-03-06 02:35:31 +01:00
run : |
2025-03-06 03:02:13 +01:00
zypper in -y python313-pip
2025-02-14 06:54:56 +01:00
- name : Install dependencies
run : |
2025-03-06 03:21:48 +01:00
pip3 install -r release_tools/requirements.txt
2025-02-14 06:54:56 +01:00
2025-02-14 10:44:27 +01:00
- name : Checkout obs-build
2025-03-06 02:29:40 +01:00
uses : https://github.com/actions/checkout@v4
2025-02-14 10:44:27 +01:00
with :
repository : openSUSE/obs-build
path : obs_build
- name : Install obs-build
run : sudo make install
working-directory : obs_build
2025-02-14 09:09:45 +01:00
- name : Checkout source validator
2025-03-06 02:29:40 +01:00
uses : https://github.com/actions/checkout@v4
2025-02-14 09:09:45 +01:00
with :
repository : openSUSE/obs-service-source_validator
path : source_validator
- name : Install source validator
run : sudo make install
working-directory : source_validator
2025-02-14 09:16:58 +01:00
- name : Checkout download_files
2025-03-06 02:29:40 +01:00
uses : https://github.com/actions/checkout@v4
2025-02-14 09:16:58 +01:00
with :
repository : openSUSE/obs-service-download_files
path : download_files
- name : Install download_files
run : sudo make install
working-directory : download_files
2025-02-14 06:54:56 +01:00
- name : Run check_source
id : check_source
2025-02-14 08:19:59 +01:00
env :
PR_SRC_FULL_NAME : ${{ github.event.pull_request.head.repo.full_name }}
2025-02-14 09:41:37 +01:00
PR_SRC_REV : ${{ github.event.pull_request.head.sha }}
2025-02-14 08:19:59 +01:00
PR_DST_FULL_NAME : ${{ github.event.pull_request.base.repo.full_name }}
2025-02-14 09:41:37 +01:00
PR_DST_REV : ${{ github.event.pull_request.base.sha }}
2025-02-14 08:19:59 +01:00
PR_CREATOR : ${{ github.event.pull_request.user.login }}
PR_CREATED_AT : ${{ github.event.pull_request.created_at }}
PR_DESCRIPTION : ${{ github.event.pull_request.body }}
2025-02-14 06:54:56 +01:00
run : |
2025-02-14 08:22:03 +01:00
python check_source.py --scm-type=Action --platform=Action --debug -A http://localhost:3000 action # set OBS API address to http://localhost:3000 just in case
2025-02-14 06:54:56 +01:00
working-directory : release_tools