@@ -22,20 +22,20 @@ jobs:
22
22
run : |
23
23
curl -s "https://artifacts-api.elastic.co/v1/branches" | jq "[ .branches[] | select(. | startswith(\"6\") | not) ]" --compact-output
24
24
curl -s "https://artifacts-api.elastic.co/v1/branches" | jq "[ .branches[] | select(. | startswith(\"6\") | not) ]" --compact-output > branches.json
25
-
25
+
26
26
- id : set-matrix
27
27
name : conditional command
28
28
run : |
29
29
if [[ "${{ github.event.inputs.branch }}" != "" ]]; then
30
30
echo "::set-output name=matrix::['${{ github.event.inputs.branch }}']"
31
- elif [[ -f "branches.json" ]]; then
31
+ elif [[ -f "branches.json" ]]; then
32
32
echo "::set-output name=matrix::$(cat branches.json)"
33
- else
33
+ else
34
34
echo "::set-output name=matrix::[]"
35
35
fi
36
36
outputs :
37
37
matrix : ${{ steps.set-matrix.outputs.matrix }}
38
-
38
+
39
39
release-notes :
40
40
name : Generate
41
41
needs : active-branches
@@ -48,14 +48,14 @@ jobs:
48
48
- uses : actions/checkout@v3
49
49
with :
50
50
ref : " ${{ matrix.branch }}"
51
-
51
+
52
52
- uses : actions/setup-dotnet@v4
53
53
with :
54
- dotnet-version : ' 8.0.100 '
54
+ global-json-file : ' global.json '
55
55
- name : Install dotnet-script
56
56
run : dotnet tool install release-notes --tool-path dotnet-tool
57
57
58
- - name : Set repository name environment variable
58
+ - name : Set repository name environment variable
59
59
run : echo "repository_name=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
60
60
61
61
- name : Find versions for branch
@@ -65,14 +65,14 @@ jobs:
65
65
echo "::set-output name=current::$(echo ${lines[0]})"
66
66
echo "::set-output name=next::$(echo ${lines[1]})"
67
67
echo ${lines[@]}
68
-
68
+
69
69
- name : Generate release notes
70
70
run : |
71
71
dotnet-tool/release-notes "${{ github.repository_owner }}" "${{ env.repository_name }}" --version ${{ steps.versions.outputs.next }} --token ${{ secrets.GITHUB_TOKEN }} --format asciidoc --output docs/release-notes
72
72
rm dotnet-tool/release-notes
73
73
git status
74
74
- name : " PR ${{ matrix.branch }}"
75
- # fixate to known release.
75
+ # fixate to known release.
76
76
uses : peter-evans/create-pull-request@052fc72b4198ba9fbc81b818c6e1859f747d49a8
77
77
with :
78
78
token : ${{ secrets.GITHUB_TOKEN }}
83
83
title : ' [release-notes] Release notes ${{ steps.versions.outputs.next }} on ${{ matrix.branch }} branch'
84
84
body : |
85
85
Release notes ${{ steps.versions.outputs.next }} on ${{ matrix.branch }} branch
86
- labels : " infra,code-gen"
86
+ labels : " infra,code-gen"
0 commit comments