Skip to content

Add workflow to automatically update schedule.yaml #1

Add workflow to automatically update schedule.yaml

Add workflow to automatically update schedule.yaml #1

Workflow file for this run

name: Update schedule.yaml
on:
workflow_dispatch:
branches:
- update-schedule-yaml
# schedule:
# - cron: '0 10 * * *'
jobs:
create-pull-request:
runs-on: ubuntu-latest
if: github.repository == 'kubernetes-sigs/downloadkubernetes'
steps:
- name: Check out repository code
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
fetch-depth: 0
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '1.22'
check-latest: true
- name: Install schedule-builder
run: go install k8s.io/release/cmd/schedule-builder@latest
- run: schedule-builder --help
#- name: Check workspace
# id: create_pr
# run: |
# if [[ $(git diff --stat) != '' ]]; then
# echo "create_pr=true" >> "$GITHUB_OUTPUT"
# fi
#- name: Create Pull Request
# uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e # v6.0.2
# if: ${{ steps.create_pr.outputs.create_pr == 'true' }}
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# commit-message: update index
# title: 'Update index'
# body: >
# Update index
# labels: ok-to-test, feature, automated pr
# branch-suffix: timestamp
# branch: update-index
# delete-branch: true