bash-custom-action/.gitea/workflows/obs-service.yaml
Alex Lau (AvengerMoJo) 3c20ba4614
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 11s
Move the env var to cli format
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2024-01-08 10:34:19 +08:00

28 lines
995 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: osc_patch_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: |
/usr/bin/ls ${{ gitea.workspace }}
- name: Using OBS checkout
with:
osc_user: 'alexlau'
osc_cred: 'osc.credentials.PlaintextConfigFileCredentialsManager'
osc_path: 'home:alexlau:branches:openSUSE:Factory'
osc_package: 'bash'
osc_action: 'buildlog'
env: # Or as an environment variable
osc_pass: ${{ secrets.OSCPASS }}
run: |
OSC_CONFIG= OSC_USERNAME="$env(INPUT_OSC_USER)" OSC_CREDENTIALS_MGR_CLASS="$env(INPUT_OSC_CRED)" OSC_PASSWORD="$env(osc_pass)" osc checkout $INPUT_OSC_PATH $INPUT_OSC_PACKAGE