forked from goharbor/harbor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yang Jiao <[email protected]>
- Loading branch information
Yang Jiao
committed
May 10, 2023
1 parent
7ce41ec
commit db25ec3
Showing
2 changed files
with
54 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: ManualDependabot | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
dependabot: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
- name: Generate API | ||
run: | | ||
make gen_apis | ||
pwd=$(pwd) | ||
echo "DIRECTORY_PATH=$(echo $pwd/src)" >> $GITHUB_ENV | ||
- name: Checkout dependabot | ||
run: | | ||
cd /tmp/ | ||
git clone https://github.com/dependabot/dependabot-script | ||
- name: Build image | ||
run: | | ||
cd /tmp/dependabot-script | ||
docker build -t "dependabot/dependabot-script" -f Dockerfile . | ||
- name: Run dependabot | ||
env: | ||
# Select your package manager | ||
PACKAGE_MANAGER: go_modules | ||
DIRECTORY_PATH: /src | ||
OPTIONS: | | ||
{ "tidy": true, "vendor": true, "labeler": "release-note/ignore-for-release" } | ||
GITHUB_ACCESS_TOKEN: ${{ github.token }} | ||
run: | | ||
echo $PWD | ||
ls | ||
docker run -v $PWD:/harbor -e PROJECT_PATH=$GITHUB_REPOSITORY -e PACKAGE_MANAGER=$PACKAGE_MANAGER -e DIRECTORY_PATH=$DIRECTORY_PATH -e DIRECTORY=harbor -e GITHUB_ACCESS_TOKEN=$GITHUB_ACCESS_TOKEN -e OPTIONS="$OPTIONS" dependabot/dependabot-script |