mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Crew update should exit if it fails (#8909)
* make failed crew update cause non-zero errorstatus, update github action * bump version * adjust github action * adjust github action * intentionally break crew update * fix crew update * Add remove package to github action
This commit is contained in:
committed by
GitHub
parent
64cbad2c93
commit
2b946f5561
7
.github/workflows/Unit-Test.yml
vendored
7
.github/workflows/Unit-Test.yml
vendored
@@ -16,8 +16,9 @@ jobs:
|
||||
- name: Unit Tests
|
||||
run: |
|
||||
sudo docker run -t satmandu/crewbuild:amd64 sudo -i -u chronos /bin/bash -c "
|
||||
echo \"CREW_REPO is ${{ github.actor }}\" && \
|
||||
echo \"CREW_REPO is ${{ github.event.pull_request.head.repo.clone_url }}\" && \
|
||||
echo \"CREW_BRANCH is ${{ github.head_ref }}\" && \
|
||||
CREW_REPO=https://github.com/${{ github.actor }}/chromebrew.git CREW_BRANCH=${{ github.head_ref }} crew update && \
|
||||
CREW_REPO=${{ github.event.pull_request.head.repo.clone_url }} CREW_BRANCH=${{ github.head_ref }} crew update && \
|
||||
yes | crew upgrade && \
|
||||
yes | crew install vim"
|
||||
yes | crew install vim && \
|
||||
yes | crew remove vim"
|
||||
|
||||
4
bin/crew
4
bin/crew
@@ -660,8 +660,8 @@ def update
|
||||
system "git sparse-checkout set packages manifest/#{USER_SPACE_ARCH} lib bin crew tools"
|
||||
system 'git sparse-checkout reapply'
|
||||
|
||||
system "git fetch #{CREW_REPO} #{CREW_BRANCH}"
|
||||
system 'git reset --hard FETCH_HEAD'
|
||||
system "git fetch #{CREW_REPO} #{CREW_BRANCH}", exception: true
|
||||
system 'git reset --hard FETCH_HEAD', exception: true
|
||||
end
|
||||
|
||||
puts 'Package lists, crew, and library updated.'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# lib/const.rb
|
||||
# Defines common constants used in different parts of crew
|
||||
CREW_VERSION = '1.38.10'
|
||||
CREW_VERSION = '1.38.11'
|
||||
|
||||
# kernel architecture
|
||||
KERN_ARCH = `uname -m`.chomp
|
||||
|
||||
Reference in New Issue
Block a user