Skip to content

Commit 50320ed

Browse files
committed
Apply kubedb/installer#2281: harden CI workflows
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent cdc578c commit 50320ed

4 files changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
4848
- name: Create Kubernetes cluster
4949
id: kind
50-
uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 # v0.5.0
50+
uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1.14.0
5151
with:
5252
version: v0.31.0
5353

.github/workflows/release-tracker.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ jobs:
4040
git config --global user.email "${GITHUB_USER}@appscode.com"
4141
git remote set-url origin https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
4242
43-
- name: Install GitHub CLI
44-
run: |
45-
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
46-
sudo mv bin/hub /usr/local/bin
47-
4843
- name: Generate GitHub App token
4944
id: app-token
5045
if: |

hack/scripts/open-pr.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pr_branch=${GITHUB_REPOSITORY}@${GITHUB_SHA:0:8}
3636
git checkout -b $pr_branch
3737
git commit -a -s -m "Update docs for $pr_branch"
3838
git push -u origin HEAD
39-
hub pull-request \
40-
--labels automerge \
41-
--message "Update docs for $pr_branch" \
42-
--message "$(git show -s --format=%b)"
39+
gh pr create \
40+
--label automerge \
41+
--title "Update docs for $pr_branch" \
42+
--body "$(git show -s --format=%b)"

hack/scripts/update-release-tracker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ case $GITHUB_BASE_REF in
6969
;;
7070
esac
7171

72-
hub api "$api_url" -f body="$msg"
72+
gh api "$api_url" -f body="$msg"

0 commit comments

Comments
 (0)