26 lines
779 B
YAML
26 lines
779 B
YAML
|
name: OSC Pull Custom Image Demo
|
||
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ factory ]
|
||
|
jobs:
|
||
|
osc_job:
|
||
|
runs-on: my_custom_label
|
||
|
name: opensuse osc custom container checkout test
|
||
|
steps:
|
||
|
- name: Checkout the repo code
|
||
|
uses: actions/checkout@v3
|
||
|
- name: List all files in the repo
|
||
|
run: |
|
||
|
ls ${{ gitea.workspace }}
|
||
|
- name: Using OBS checkout
|
||
|
with:
|
||
|
osc_user: 'alexlau'
|
||
|
osc_path: 'home:alexlau:branches:Base:System'
|
||
|
osc_package: 'bash'
|
||
|
osc_action: 'buildlog'
|
||
|
env: # Or as an environment variable
|
||
|
osc_pass: ${{ secrets.OSCPASS }}
|
||
|
run: |
|
||
|
osc checkout "$env(INPUT_OSC_PATH)" "$env(INPUT_OSC_PACKAGE)"
|