-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (41 loc) · 1.36 KB
/
update-kalix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Update Kalix CLI version
## This workflow can be triggered manually
on:
workflow_dispatch:
issues:
types: ["opened"]
jobs:
update_akkasls:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
id: check
with:
script: |
if ("${{ github.rest.issue.title }}" != "update kalix" && "${{ github.event_name }}" != "workflow_dispatch") {
console.log('Issue is not to update kalix');
return 'stop'
} else {
return 'build'
}
console.log("${{ github.event_name }}")
result-encoding: string
- uses: actions/checkout@v3
if: steps.check.outputs.result == 'build'
# Force fetching only latest main
with:
ref: 'main'
- name: Run command
run: python3 -m pip install requests && ./scripts/kalix-script.py
if: steps.check.outputs.result == 'build'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
if: steps.check.outputs.result == 'build'
with:
title: Update kalix CLI version
branch-suffix: short-commit-hash
body: Update kalix CLI to latest stable version
delete-branch: true
labels: enhancement, Feature
commit-message: "feat(cli): update kalix CLI to the latest stable version"
author: "GitHub <noreply@github.com>"