File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,13 @@ jobs:
34
34
id : new-version
35
35
run : |
36
36
NEW_VERSION=$(yq e '.version' charts/gitops-server/Chart.yaml)
37
- echo "::set-output name= version:: $NEW_VERSION"
37
+ echo "version= $NEW_VERSION" >> $GITHUB_OUTPUT
38
38
- name : Find old version
39
39
id : old-version
40
40
run : |
41
41
git checkout ${{ github.event.pull_request.base.sha || github.event.before }}
42
42
OLD_VERSION=$(yq e '.version' charts/gitops-server/Chart.yaml)
43
- echo "::set-output name= version:: $OLD_VERSION"
43
+ echo "version= $OLD_VERSION" >> $GITHUB_OUTPUT
44
44
45
45
helm-will-release :
46
46
runs-on : ubuntu-latest
59
59
git log --exit-code $last_revision...${{ github.event.pull_request.base.sha }} charts/gitops-server
60
60
unreleased_commits=$?
61
61
if [[ $unreleased_commits == 1 ]]; then
62
- echo "::set-output name= unreleased-commits:: The last chart was last released in $last_revision and there have been other changes in the chart since"
62
+ echo "unreleased-commits= The last chart was last released in $last_revision and there have been other changes in the chart since" >> $GITHUB_OUTPUT
63
63
fi
64
64
- name : Let user know merging will cause a release
65
65
uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
86
86
id : new_version
87
87
run : |
88
88
NEW_VERSION=$(yq e '.version' charts/gitops-server/Chart.yaml)
89
- echo "::set-output name= version:: $NEW_VERSION"
89
+ echo "version= $NEW_VERSION" >> $GITHUB_OUTPUT
90
90
- name : Generate new chart
91
91
run : |
92
92
URL=https://helm.gitops.weave.works
Original file line number Diff line number Diff line change 80
80
tag : ${{ steps.generate-tag.outputs.tag }}
81
81
steps :
82
82
- id : generate-tag
83
- run : echo "::set-output name= tag:: $(date -u +%s)-${{ github.sha }}"
83
+ run : echo "tag= $(date -u +%s)-${{ github.sha }}" >> $GITHUB_OUTPUT
84
84
85
85
ci-build-gitops-image :
86
86
name : CI Build Gitops Docker Image
@@ -171,7 +171,7 @@ jobs:
171
171
- id : gitsha
172
172
run : |
173
173
gitsha=$(git rev-parse --short ${{ github.sha }})
174
- echo "::set-output name= sha:: $gitsha"
174
+ echo "sha= $gitsha" >> $GITHUB_OUTPUT
175
175
- name : build
176
176
run : |
177
177
make gitops
@@ -216,7 +216,7 @@ jobs:
216
216
id : package-version
217
217
run : |
218
218
GITOPS_VERSION=$(git describe)
219
- echo "::set-output name= js-version:: $GITOPS_VERSION"
219
+ echo "js-version= $GITOPS_VERSION" >> $GITHUB_OUTPUT
220
220
jq '.version = "'$GITOPS_VERSION'" | .name = "@weaveworks/weave-gitops-main"' < dist/package.json > dist/package-new.json
221
221
mv dist/package-new.json dist/package.json
222
222
cp .npmrc dist
Original file line number Diff line number Diff line change 31
31
GITHUB_EVENT_PULL_REQUEST_HEAD_REF : ${{ github.event.pull_request.head.ref }}
32
32
run : |
33
33
version=$(echo $GITHUB_EVENT_PULL_REQUEST_HEAD_REF | cut -d'/' -f2)
34
- echo "::set-output name= version:: $version"
34
+ echo "version= $version" >> $GITHUB_OUTPUT
35
35
- name : Set tag
36
36
run : |
37
37
git config user.name weave-gitops-bot
Original file line number Diff line number Diff line change 23
23
new_version="$(curl -s --request GET --url "https://api.github.com/repos/fluxcd/flux2/releases?per_page=1" | jq . | jq '.[0] | .tag_name' | jq -r | sed -e 's/v//')"
24
24
25
25
if [[ "$old_version" != "$new_version" ]]; then
26
- echo "::set-output name= version:: $new_version"
26
+ echo "version= $new_version" >> $GITHUB_OUTPUT
27
27
fi
28
28
upgrade-flux :
29
29
needs :
You can’t perform that action at this time.
0 commit comments