Skip to content

Commit

Permalink
refactor: update scripts for fork users (#299)
Browse files Browse the repository at this point in the history
* ci(github-release): add missing description

Signed-off-by: Kenji Miyake <[email protected]>

* feat(setup-dev-env.sh): install git for CI

Signed-off-by: Kenji Miyake <[email protected]>

* ci(build, vcs-import): set git config befor vcs import

Signed-off-by: Kenji Miyake <[email protected]>

* ci(build): remove default playbook name

Signed-off-by: Kenji Miyake <[email protected]>
  • Loading branch information
kenji-miyake authored May 16, 2022
1 parent 2e551c7 commit 3652155
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ jobs:

- name: Run setup script
run: |
./setup-dev-env.sh -y universe
./setup-dev-env.sh -y
- name: Set git config
uses: autowarefoundation/autoware-github-actions/set-git-config@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Run vcs import
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/github-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
workflow_dispatch:
inputs:
beta-branch-or-tag-name:
description: The name of the beta branch or tag to release
type: string
required: true

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/vcs-import.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
with:
rosdistro: galactic

- name: Set git config
uses: autowarefoundation/autoware-github-actions/set-git-config@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Run vcs import
run: |
mkdir src
Expand Down
6 changes: 6 additions & 0 deletions setup-dev-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ if ! (command -v sudo >/dev/null 2>&1); then
apt-get -y install sudo
fi

# Install git
if ! (command -v git >/dev/null 2>&1); then
sudo apt-get -y update
sudo apt-get -y install git
fi

# Install pip for ansible
if ! (command -v pip3 >/dev/null 2>&1); then
sudo apt-get -y update
Expand Down

0 comments on commit 3652155

Please sign in to comment.