Skip to content

Commit

Permalink
Run make generate-release periodically and on push (#507)
Browse files Browse the repository at this point in the history
Signed-off-by: Pierangelo Di Pilato <[email protected]>
  • Loading branch information
pierDipi authored Jan 15, 2025
1 parent 2046a32 commit 3a79d3d
Show file tree
Hide file tree
Showing 5 changed files with 218 additions and 54 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/release-generate-ci-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- 'main'
schedule:
- cron: "0 6 * * *" # Daily at 06:00.
- cron: "0 6 * * 1" # Runs every Monday at 6:00 AM UTC
workflow_dispatch: # Manual workflow trigger

concurrency:
Expand All @@ -23,17 +23,7 @@ jobs:
generate-ci:
name: generate-ci
runs-on: ubuntu-latest
env:
GOPATH: ${{ github.workspace }}
steps:
- name: Install prerequisites
env:
YQ_VERSION: 3.4.0
run: |
sudo wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 -O /usr/bin/yq
sudo chmod +x /usr/bin/yq
sudo mv /usr/bin/yq /usr/local/bin/yq
- name: Checkout openshift-knative/hack
uses: actions/checkout@v4
with:
Expand All @@ -44,6 +34,12 @@ jobs:
with:
go-version-file: ./src/github.com/openshift-knative/hack/go.mod

- name: Install yq
run: go install github.com/mikefarah/yq/v3@latest

- name: Install skopeo
run: go install -tags="exclude_graphdriver_btrfs containers_image_openpgp" github.com/containers/skopeo/cmd/[email protected]

- name: Install YAML2JSON
run: go install github.com/bronze1man/yaml2json@latest

Expand Down
Loading

0 comments on commit 3a79d3d

Please sign in to comment.