repo init
This commit is contained in:
commit
a0bf4e7b6d
49
.gitea/workflows/run-check-source.yml
Normal file
49
.gitea/workflows/run-check-source.yml
Normal file
@ -0,0 +1,49 @@
|
||||
name: Run Check Source Action
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
review:
|
||||
runs-on: tumbleweed
|
||||
steps:
|
||||
- name: Checkout base
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.base_ref }}
|
||||
path: base
|
||||
|
||||
- name: Checkout head
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
path: head
|
||||
|
||||
- name: Checkout release tools
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
with:
|
||||
repository: https://github.com/YoukouTenhouin/openSUSE-release-tools
|
||||
ref: vcs-refactor
|
||||
path: release_tools
|
||||
|
||||
- name: Set up environment
|
||||
run: |
|
||||
zypper in -y build obs-service-source_validator obs-service-download_files python313-pip
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install --break-system-packages -r release_tools/requirements.txt
|
||||
|
||||
- name: Run check_source
|
||||
id: check_source
|
||||
env:
|
||||
PR_SRC_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
PR_SRC_REV: ${{ github.event.pull_request.head.sha }}
|
||||
PR_DST_FULL_NAME: ${{ github.event.pull_request.base.repo.full_name }}
|
||||
PR_DST_REV: ${{ github.event.pull_request.base.sha }}
|
||||
PR_CREATOR: ${{ github.event.pull_request.user.login }}
|
||||
PR_CREATED_AT: ${{ github.event.pull_request.created_at }}
|
||||
PR_DESCRIPTION: ${{ github.event.pull_request.body }}
|
||||
run: |
|
||||
python3.13 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
|
||||
working-directory: release_tools
|
Loading…
x
Reference in New Issue
Block a user