Skip to content

Commit

Permalink
[bot] update konflux configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
openshift-pipelines-bot authored and vdemeester committed Dec 13, 2024
1 parent 178b57d commit 8f912be
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/update-sources.main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,24 @@ jobs:
sed -i "s%go 1.22.*%go 1.22%g" go.mod
sed -i "s%go 1.22.*%go 1.22%g" vendor/modules.txt
git diff > ../.konflux/patches/0000-go1.22.patch
if [[ -z $(git status --porcelain --untracked-files=no) ]]; then
echo "No change, exiting"
exit 0
else
git diff > ../.konflux/patches/0000-go1.22.patch
fi
# clean after yourself >:D
git checkout HEAD go.mod vendor/modules.txt
sed -i "s%go 1.23.*%go 1.22%g" go.mod
sed -i "s%go 1.23.*%go 1.22%g" vendor/modules.txt
git diff > ../.konflux/patches/0000-go1.23.patch
if [[ -z $(git status --porcelain --untracked-files=no) ]]; then
echo "No change, exiting"
exit 0
else
git diff > ../.konflux/patches/0000-go1.23.patch
fi
# clean after yourself >:D
git checkout HEAD go.mod vendor/modules.txt
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/update-sources.next.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,24 @@ jobs:
sed -i "s%go 1.22.*%go 1.22%g" go.mod
sed -i "s%go 1.22.*%go 1.22%g" vendor/modules.txt
git diff > ../.konflux/patches/0000-go1.22.patch
if [[ -z $(git status --porcelain --untracked-files=no) ]]; then
echo "No change, exiting"
exit 0
else
git diff > ../.konflux/patches/0000-go1.22.patch
fi
# clean after yourself >:D
git checkout HEAD go.mod vendor/modules.txt
sed -i "s%go 1.23.*%go 1.22%g" go.mod
sed -i "s%go 1.23.*%go 1.22%g" vendor/modules.txt
git diff > ../.konflux/patches/0000-go1.23.patch
if [[ -z $(git status --porcelain --untracked-files=no) ]]; then
echo "No change, exiting"
exit 0
else
git diff > ../.konflux/patches/0000-go1.23.patch
fi
# clean after yourself >:D
git checkout HEAD go.mod vendor/modules.txt
Expand Down

0 comments on commit 8f912be

Please sign in to comment.