|
12 | 12 |
|
13 | 13 | (version_code, version_name) = read_gradle_version(project_dir) |
14 | 14 |
|
15 | | - print("::set-output name=appVersionName::" + version_name) |
16 | | - print("::set-output name=appVersionCode::" + str(version_code)) |
| 15 | + print("appVersionName=" + version_name) |
| 16 | + print("appVersionCode=" + str(version_code)) |
17 | 17 |
|
18 | 18 | dir = f"{project_dir}/app/release/whatsnew-{version_name}/" |
19 | 19 | os.makedirs(dir, exist_ok=True) |
20 | 20 |
|
21 | | - print("::set-output name=changelogDir::" + dir) |
| 21 | + print("changelogDir=" + dir) |
22 | 22 |
|
23 | 23 | (title, changelog) = get_changelog(project_dir, format="plain") |
24 | 24 |
|
|
27 | 27 | f.write(title) |
28 | 28 | f.write("\n") |
29 | 29 | f.write(changelog) |
30 | | - print("::set-output name=changelogPlainTitledFile::" + dir + "whatsnew_titled.txt") |
| 30 | + print("changelogPlainTitledFile=" + dir + "whatsnew_titled.txt") |
31 | 31 |
|
32 | | - print("::set-output name=changelogTitle::" + title) |
| 32 | + print("changelogTitle=" + title) |
33 | 33 |
|
34 | 34 | # plain text changelog, max 500 chars - Google Play |
35 | 35 | with open(dir + "whatsnew-pl-PL", "w", encoding="utf-8") as f: |
|
41 | 41 | changelog = changelog.strip() |
42 | 42 | f.write(changelog) |
43 | 43 |
|
44 | | - print("::set-output name=changelogPlainFile::" + dir + "whatsnew-pl-PL") |
| 44 | + print("changelogPlainFile=" + dir + "whatsnew-pl-PL") |
45 | 45 |
|
46 | 46 | # markdown changelog - Discord webhook |
47 | 47 | (_, changelog) = get_changelog(project_dir, format="markdown") |
48 | 48 | with open(dir + "whatsnew.md", "w", encoding="utf-8") as f: |
49 | 49 | f.write(changelog) |
50 | | - print("::set-output name=changelogMarkdownFile::" + dir + "whatsnew.md") |
| 50 | + print("changelogMarkdownFile=" + dir + "whatsnew.md") |
51 | 51 |
|
52 | 52 | # html changelog - version info in DB |
53 | 53 | (_, changelog) = get_changelog(project_dir, format="html") |
54 | 54 | with open(dir + "whatsnew.html", "w", encoding="utf-8") as f: |
55 | 55 | f.write(changelog) |
56 | | - print("::set-output name=changelogHtmlFile::" + dir + "whatsnew.html") |
57 | | - |
| 56 | + print("changelogHtmlFile=" + dir + "whatsnew.html") |
58 | 57 |
|
59 | 58 | changelog = get_commit_log(project_dir, format="plain", max_lines=10) |
60 | 59 | with open(dir + "commit_log.txt", "w", encoding="utf-8") as f: |
61 | 60 | f.write(changelog) |
62 | | - print("::set-output name=commitLogPlainFile::" + dir + "commit_log.txt") |
| 61 | + print("commitLogPlainFile=" + dir + "commit_log.txt") |
63 | 62 |
|
64 | 63 | changelog = get_commit_log(project_dir, format="markdown", max_lines=10) |
65 | 64 | with open(dir + "commit_log.md", "w", encoding="utf-8") as f: |
66 | 65 | f.write(changelog) |
67 | | - print("::set-output name=commitLogMarkdownFile::" + dir + "commit_log.md") |
| 66 | + print("commitLogMarkdownFile=" + dir + "commit_log.md") |
68 | 67 |
|
69 | 68 | changelog = get_commit_log(project_dir, format="html", max_lines=10) |
70 | 69 | with open(dir + "commit_log.html", "w", encoding="utf-8") as f: |
71 | 70 | f.write(changelog) |
72 | | - print("::set-output name=commitLogHtmlFile::" + dir + "commit_log.html") |
| 71 | + print("commitLogHtmlFile=" + dir + "commit_log.html") |
0 commit comments