Using format_spec_file and source_validator
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
This commit is contained in:
parent
a61558c8bc
commit
7125a0f03b
@ -11,17 +11,38 @@ jobs:
|
|||||||
- name: Checkout the repo code
|
- name: Checkout the repo code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: List all files in the repo
|
- name: List all files in the repo
|
||||||
|
run: echo "Workspace: ${{ gitea.workspace }}"
|
||||||
run: |
|
run: |
|
||||||
/usr/bin/ls ${{ gitea.workspace }}
|
/usr/bin/ls ${{ gitea.workspace }}
|
||||||
- name: Using OBS checkout
|
- name: Using OBS checkout (remote)
|
||||||
|
with:
|
||||||
|
osc_user: 'alexlau'
|
||||||
|
osc_cred: 'osc.credentials.PlaintextConfigFileCredentialsManager'
|
||||||
|
osc_path: 'home:alexlau:branches:openSUSE:Factory'
|
||||||
|
osc_package: 'bash'
|
||||||
|
env: # Or as an environment variable
|
||||||
|
osc_pass: ${{ secrets.OSCPASS }}
|
||||||
|
run:
|
||||||
|
OSC_CONFIG= OSC_USERNAME=$INPUT_OSC_USER OSC_CREDENTIALS_MGR_CLASS=$INPUT_OSC_CRED OSC_PASSWORD=$osc_pass osc checkout $INPUT_OSC_PATH $INPUT_OSC_PACKAGE
|
||||||
|
- name: OBS format spec check (local)
|
||||||
with:
|
with:
|
||||||
osc_user: 'alexlau'
|
osc_user: 'alexlau'
|
||||||
osc_cred: 'osc.credentials.PlaintextConfigFileCredentialsManager'
|
osc_cred: 'osc.credentials.PlaintextConfigFileCredentialsManager'
|
||||||
osc_path: 'home:alexlau:branches:openSUSE:Factory'
|
osc_path: 'home:alexlau:branches:openSUSE:Factory'
|
||||||
osc_package: 'bash'
|
osc_package: 'bash'
|
||||||
osc_action: 'buildlog'
|
|
||||||
|
|
||||||
env: # Or as an environment variable
|
env: # Or as an environment variable
|
||||||
osc_pass: ${{ secrets.OSCPASS }}
|
osc_pass: ${{ secrets.OSCPASS }}
|
||||||
run: |
|
run: |
|
||||||
OSC_CONFIG= OSC_USERNAME=$INPUT_OSC_USER OSC_CREDENTIALS_MGR_CLASS=$INPUT_OSC_CRED OSC_PASSWORD=$osc_pass osc checkout $INPUT_OSC_PATH $INPUT_OSC_PACKAGE
|
cd $INPUT_OSC_PATH $INPUT_OSC_PATH/$INPUT_OSC_PACKAGE
|
||||||
|
OSC_CONFIG= OSC_USERNAME=$INPUT_OSC_USER OSC_CREDENTIALS_MGR_CLASS=$INPUT_OSC_CRED OSC_PASSWORD=$osc_pass osc service run format_spec_file
|
||||||
|
- name: OBS soiurce validate (local)
|
||||||
|
with:
|
||||||
|
osc_user: 'alexlau'
|
||||||
|
osc_cred: 'osc.credentials.PlaintextConfigFileCredentialsManager'
|
||||||
|
osc_path: 'home:alexlau:branches:openSUSE:Factory'
|
||||||
|
osc_package: 'bash'
|
||||||
|
env: # Or as an environment variable
|
||||||
|
osc_pass: ${{ secrets.OSCPASS }}
|
||||||
|
run: |
|
||||||
|
cd $INPUT_OSC_PATH $INPUT_OSC_PATH/$INPUT_OSC_PACKAGE
|
||||||
|
OSC_CONFIG= OSC_USERNAME=$INPUT_OSC_USER OSC_CREDENTIALS_MGR_CLASS=$INPUT_OSC_CRED OSC_PASSWORD=$osc_pass osc service run source_validator
|
||||||
|
Loading…
Reference in New Issue
Block a user