Skip to content

Commit 710f3b9

Browse files
committed
Automate new-release, new-patch and upstream-versions
# Conflicts: # .github/workflows/release-manager.yaml
1 parent 17e2be1 commit 710f3b9

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

.github/workflows/release-manager.yaml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ on:
1919
For new releases patch version defaults to 0 and for new-patch action patch version is auto increased.
2020
2121
required: true
22-
default: 'next'
22+
default: '1.23'
2323
type: string
2424
permissions:
25-
contents: read
26-
issues: write
27-
repository-projects: write
25+
contents: write
26+
pull-requests: write
2827
jobs:
2928
run-release:
3029
runs-on: ubuntu-latest
@@ -38,25 +37,36 @@ jobs:
3837
echo "Version: ${{ github.event.inputs.version }}"
3938
4039
- name: Run Release Script
40+
env:
41+
GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }}
42+
GITHUB_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }}
4143
run: |
42-
./release-manager.sh \
44+
./hack/release-manager.sh \
4345
--action "${{ github.event.inputs.action }}" \
4446
--version "${{ github.event.inputs.version }}"
47+
4548
- name: Create Pull Request
49+
env:
50+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4652
run: |
53+
set -x
54+
git config user.name openshift-pipelines-bot
55+
git config user.email pipelines-extcomm@redhat.com
56+
4757
BASE_BRANCH=${GITHUB_REF#refs/heads/}
48-
SOURCE_BRANCH=actions/hack/${{ github.event.inputs.action }}-${{ github.event.inputs.version }}
58+
SOURCE_BRANCH=actions/update/${{ github.event.inputs.action }}
4959
5060
git checkout -b ${SOURCE_BRANCH}
51-
git add -f .
61+
git add -f config .github
5262
5363
if [[ -z $(git status --porcelain --untracked-files=no) ]]; then
5464
echo "No change, exiting"
5565
exit 0
5666
fi
5767
5868
git commit -F- <<EOF
59-
[bot: ${{ github.event.inputs.version }}] Action: ${{ github.event.inputs.action }}"
69+
Release Action: ${{ github.event.inputs.action }} ${{ github.event.inputs.version }}
6070
EOF
6171
6272
git push -f origin ${SOURCE_BRANCH}
@@ -65,7 +75,3 @@ jobs:
6575
echo "creating PR..."
6676
gh pr create -B ${BASE_BRANCH} -H ${SOURCE_BRANCH} --label=automated --fill
6777
fi
68-
69-
70-
env:
71-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

config/upstream/konflux.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
applications:
2-
- tekton-kueue
2+
# - tekton-kueue
33
versions:
44
- 0.1

0 commit comments

Comments
 (0)