Add scheduled workflow for devel branch
All checks were successful
Build PR in OBS / Build PR in OBS (pull_request_target) Successful in 11s
All checks were successful
Build PR in OBS / Build PR in OBS (pull_request_target) Successful in 11s
Signed-off-by: Nicolas Belouin <nicolas.belouin@suse.com>
This commit is contained in:
parent
8f20b3433e
commit
15362e9536
30
.gitea/workflows/trigger_devel.yaml
Normal file
30
.gitea/workflows/trigger_devel.yaml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: Trigger Devel Packages
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "@daily"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync-pr-project:
|
||||||
|
name: "Trigger source services for devel packages that changed"
|
||||||
|
runs-on: tumbleweed
|
||||||
|
steps:
|
||||||
|
- name: Setup OSC
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.config/osc
|
||||||
|
cat >~/.config/osc/oscrc <<'EOF'
|
||||||
|
[general]
|
||||||
|
apiurl = https://api.opensuse.org
|
||||||
|
|
||||||
|
[https://api.opensuse.org]
|
||||||
|
user=${{ vars.OBS_USERNAME }}
|
||||||
|
pass=${{ secrets.OBS_PASSWORD }}
|
||||||
|
EOF
|
||||||
|
# Waiting on PR to get merged for support in upstream action/checkout action
|
||||||
|
- uses: 'https://github.com/yangskyboxlabs/action-checkout@sha256'
|
||||||
|
name: Checkout repository
|
||||||
|
with:
|
||||||
|
object-format: 'sha256'
|
||||||
|
ref: 'devel'
|
||||||
|
- name: "Trigger packages"
|
||||||
|
run: |
|
||||||
|
python3 .obs/trigger_package.py
|
Loading…
x
Reference in New Issue
Block a user