File tree 2 files changed +20
-8
lines changed
actions/screenshot-android
2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 82
82
disable-animations : true
83
83
script : |
84
84
bundle exec fastlane screengrab || exit 1
85
+
86
+ - name : Update Fastlane Metadata
87
+ if : ${{ github.event_name == 'push' }}
88
+ shell : bash
89
+ run : |
90
+ git config --global user.name "github-actions[bot]"
91
+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
92
+
93
+ cd fastlane
94
+
95
+ # Force push to fastlane branch
96
+ git checkout --orphan temporary
97
+ git add --all .
98
+ git commit -am "[Auto] Update screenshots ($(date +%Y-%m-%d.%H:%M:%S))"
99
+ git branch -D fastlane-android
100
+ git branch -m fastlane-android
101
+ git push --force origin fastlane-android
85
102
86
103
- name : Upload Screenshots
87
104
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -32,17 +32,12 @@ jobs:
32
32
read -r version_code < versionCode.txt
33
33
echo "VERSION_CODE=$version_code" >> $GITHUB_OUTPUT
34
34
35
+ - name : Add Changelogs to fastlane branch
36
+ run : |
35
37
git config --global user.name "github-actions[bot]"
36
38
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
39
+ git clone --branch=fastlane-android --depth=1 https://${{ github.repository_owner }}:${{ github.token }}@github.com/${{ github.repository }} fastlane
37
40
38
- - name : Android Screenshot Workflow
39
- uses : ./.github/actions/screenshot-android
40
- with :
41
- ANDROID_EMULATOR_API : ${{ env.ANDROID_EMULATOR_API }}
42
- ANDROID_EMULATOR_ARCH : ${{ env.ANDROID_EMULATOR_ARCH }}
43
-
44
- - name : Add Changelogs to fastlane branch
45
- run : |
46
41
cd fastlane
47
42
48
43
echo "${{ github.event.release.body }}" > metadata/android/en-US/changelogs/${{ steps.download-assets.outputs.VERSION_CODE }}.txt
You can’t perform that action at this time.
0 commit comments