From 44f43a4f2eaf0ab86b9566f3df8507b6b75baba4 Mon Sep 17 00:00:00 2001 From: "Alex Lau (AvengerMoJo)" Date: Mon, 27 Nov 2023 14:56:34 +0800 Subject: [PATCH] Testing the custom label action Signed-off-by: Alex Lau (AvengerMoJo) --- .gitea/workflows/obs-service.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/obs-service.yaml diff --git a/.gitea/workflows/obs-service.yaml b/.gitea/workflows/obs-service.yaml new file mode 100644 index 00000000..4d3c3f7d --- /dev/null +++ b/.gitea/workflows/obs-service.yaml @@ -0,0 +1,25 @@ +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)"