Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
fdf994dc
Unverified
Commit
fdf994dc
authored
Apr 03, 2023
by
Guilherme Macedo
Committed by
GitHub
Apr 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[UpdateCLI] Improve workflow (#7142)
* Improve UpdateCLI workflow * Update Go version to stable in workflow Signed-off-by:
Guilherme Macedo
<
guilherme.macedo@suse.com
>
parent
37b3f4d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
updatecli.yaml
.github/workflows/updatecli.yaml
+9
-1
No files found.
.github/workflows/updatecli.yaml
View file @
fdf994dc
...
...
@@ -25,7 +25,15 @@ jobs:
-
name
:
Install Go
uses
:
actions/setup-go@v3
with
:
go-version
:
'
1.19.6'
go-version
:
'
stable'
-
name
:
Delete leftover UpdateCLI branches
run
:
|
gh pr list --search "is:closed is:pr head:updatecli_" --json headRefName --jq ".[].headRefName" | sort -u > closed_prs_branches.txt
gh pr list --search "is:open is:pr head:updatecli_" --json headRefName --jq ".[].headRefName" | sort -u > open_prs_branches.txt
for branch in $(comm -23 closed_prs_branches.txt open_prs_branches.txt); do if (git ls-remote --exit-code --heads origin "$branch"); then echo "Deleting leftover UpdateCLI branch - $branch"; git push origin --delete "$branch"; fi done
env
:
GH_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Install Updatecli
uses
:
updatecli/updatecli-action@v2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment