11
11
steps :
12
12
- name : Get current date
13
13
id : date
14
- run : echo "::set-output name=date::$(date +'%Y-%m-%d')"
14
+ run : |
15
+ echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
15
16
- name : Check out repository content
16
17
uses : actions/checkout@v2
17
18
with :
@@ -35,33 +36,33 @@ jobs:
35
36
base : ' base/fern/apis/public/openapi-public.yaml'
36
37
revision : ' head/fern/apis/public/openapi-public.yaml'
37
38
format : text
38
- output-to-file : ' temp/public/${{ steps.date.outputs.date }}_oasdiff.md'
39
+ output-to-file : ' temp/public/${{ env.DATE }}_oasdiff.md'
39
40
- name : Running beta OpenAPI Spec diff action
40
41
uses : oasdiff/oasdiff-action/diff@main
41
42
with :
42
43
base : ' base/fern/apis/beta/openapi-beta.yaml'
43
44
revision : ' head/fern/apis/beta/openapi-beta.yaml'
44
45
format : text
45
- output-to-file : ' temp/beta/${{ steps.date.outputs.date }}_oasdiff.md'
46
+ output-to-file : ' temp/beta/${{ env.DATE }}_oasdiff.md'
46
47
- name : Archive changelogs
47
48
uses : actions/upload-artifact@v4
48
49
with :
49
- name : changelog-${{ steps.date.outputs.date }}
50
+ name : changelog-${{ env.DATE }}
50
51
path : temp/**
51
52
- name : Prompt
52
53
env :
53
54
LLM_JWT : ${{ secrets.LLM_JWT }}
54
55
run : |
55
- logfiles="fern/apis/*/changelog/${{ steps.date.outputs.date }}.md"
56
+ logfiles="fern/apis/*/changelog/${{ env.DATE }}.md"
56
57
57
58
if ls $logfiles >/dev/null 2>&1; then
58
59
logfiles=($logfiles)
59
60
echo "${logfiles[@]} already exist."
60
61
else
61
- python changelog.py --date ${{ steps.date.outputs.date }}
62
+ python changelog.py --date ${{ env.DATE }}
62
63
git config user.name github-actions
63
64
git config user.email github-actions@github.com
64
- git add fern/apis/*/changelog/${{ steps.date.outputs.date }}.md
65
+ git add fern/apis/*/changelog/${{ env.DATE }}.md
65
66
git commit -m "generated by Claude"
66
67
git push
67
68
fi
0 commit comments