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 17, 2024
1 parent 7470b74 commit 6a10afc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 64 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/update-sources.main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,38 +29,6 @@ jobs:
popd
- name: Generate patches
run: |
pushd upstream
rm ../.konflux/patches/0000-go1.22.patch || true
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
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
rm ../.konflux/patches/0000-go1.23.patch || true
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
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
popd
- name: Commit new changes
run: |
git config user.name openshift-pipelines-bot
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/update-sources.next.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,38 +29,6 @@ jobs:
popd
- name: Generate patches
run: |
pushd upstream
rm ../.konflux/patches/0000-go1.22.patch || true
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
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
rm ../.konflux/patches/0000-go1.23.patch || true
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
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
popd
- name: Commit new changes
run: |
git config user.name openshift-pipelines-bot
Expand Down

0 comments on commit 6a10afc

Please sign in to comment.