Skip to content

Commit

Permalink
workflow: fix go mod init issue
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywang committed Jul 20, 2023
1 parent 8929379 commit ca2a19a
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/greenboot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

greenboot-rs-rawhide:
needs: [pr-info, pre-greenboot-rs-rawhide]
needs: [pr-info, comment-info, pre-greenboot-rs-rawhide]
if: ${{ needs.pr-info.outputs.allowed_user == 'true' }} &&
(startsWith(github.event.comment.body, '/greenboot-rs-test-all') ||
startsWith(github.event.comment.body, '/greenboot-rs-test-rawhide'))}}
Expand Down Expand Up @@ -170,17 +170,23 @@ jobs:
# Only run when PR has osbuild-composer dependence
- name: Checkout osbuild-composer code
if: ${{ needs.comment-info.outputs.osbuild-composer_branch != 'main' }} || ${{ needs.comment-info.outputs.images_branch != 'main' }}
uses: actions/checkout@v3
with:
repository: ${{ needs.comment-info.outputs.osbuild-composer_repo }}
ref: ${{ needs.comment-info.outputs.osbuild-composer_branch }}
path: osbuild-composer
run: git clone -b ${{ needs.comment-info.outputs.osbuild-composer_branch }} https://github.com/${{ needs.comment-info.outputs.osbuild-composer_repo }}
# uses: actions/checkout@v3
# with:
# repository: ${{ needs.comment-info.outputs.osbuild-composer_repo }}
# ref: ${{ needs.comment-info.outputs.osbuild-composer_branch }}
# path: osbuild-composer

- name: Build osbuild-composer
if: ${{ needs.comment-info.outputs.osbuild-composer_branch != 'main' }} || ${{ needs.comment-info.outputs.images_branch != 'main' }}
run: |
ls -al
pwd
git status
ls -a ../images
git -C ../images status
go mod edit -replace github.com/osbuild/images=../images
./tools/prepare-source.sh
GOPROXY=https://proxy.golang.org/cached-only ./tools/prepare-source.sh
git config --global user.name "greenboot bot"
git config --global user.email "[email protected]"
Expand Down

0 comments on commit ca2a19a

Please sign in to comment.