Skip to content

Commit

Permalink
Debug update deps issue
Browse files Browse the repository at this point in the history
  • Loading branch information
creydr committed Dec 18, 2023
1 parent 096d5a4 commit 4c5deec
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/tmp-update-deps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2020 The Knative Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This file is automagically synced here from github.com/knative-extensions/.github
# repo by knobots: https://github.com/knative-extensions/knobots and will be overwritten.

name: Verify

on:
pull_request:
branches: [ 'main' ]

jobs:
update-deps:
name: Test update-deps.sh
runs-on: ubuntu-latest
steps:
- name: Run
run: ./hack/update-deps.sh --upgrade
7 changes: 5 additions & 2 deletions hack/update-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ upgrade_artifacts=${UPGRADE_ARTIFACTS:-""}

function fetch_submodule() {
branch=${1}
echo "Listing remotes"
git remote -v

echo "Pulling branch ${branch} for submodule $(pwd)"
git fetch origin -u "${branch}":"${branch}" || return $?
git merge "origin/${branch}" || return $?
git fetch origin -u "${branch}":"${branch}" -v || return $?
git merge -v "origin/${branch}" || return $?

git submodule update --init
}
Expand Down

0 comments on commit 4c5deec

Please sign in to comment.