1+ name : Release - Update Release Notes in Play Store and Github
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ app-version :
7+ description : ' App Version for Release'
8+ required : true
9+ default : ' PLACEHOLDER'
10+ release-notes :
11+ description : ' Release notes for the version'
12+ required : true
13+ default : ' Bug fixes and other improvements'
14+
15+ env :
16+ ASANA_PAT : ${{ secrets.GH_ASANA_SECRET }}
17+ GH_TOKEN : ${{ secrets.GT_DAXMOBILE }}
18+
19+ jobs :
20+ update-release-notes :
21+ name : Update release notes in Play Store and Github
22+ runs-on : ubuntu-latest
23+
24+ steps :
25+ - name : Checkout repository
26+ uses : actions/checkout@v4
27+ with :
28+ submodules : recursive
29+ token : ${{ secrets.GT_DAXMOBILE }}
30+
31+ - name : Set up ruby env
32+ uses : ruby/setup-ruby@v1
33+ with :
34+ ruby-version : 2.7.2
35+ bundler-cache : true
36+
37+ - name : Decode Play Store credentials file
38+ uses : davidSchuppa/base64Secret-toFile-action@199e78f212c854d2284fada7f3cd3aba3e37d208
39+ with :
40+ secret : ${{ secrets.UPLOAD_PLAY_CREDENTIALS }}
41+ fileName : api.json
42+ destination-path : $HOME/jenkins_static/com.duckduckgo.mobile.android/
43+
44+ - name : Update release notes in Play Store
45+ id : update_play_store_release_notes
46+ run : |
47+ bundle exec fastlane update_release_notes_playstore release_number:${{ github.event.inputs.app-version }} release_notes:"${{ github.event.inputs.release-notes }}"
48+
49+ - name : Update release notes in Github
50+ id : update_gh_release_notes
51+ run : |
52+ bundle exec fastlane update_release_notes_github release_number:${{ github.event.inputs.app-version }} release_notes:"${{ github.event.inputs.release-notes }}"
53+
54+ - name : Create Asana task when workflow failed
55+ if : ${{ failure() }}
56+ id : create-failure-task
57+ uses : duckduckgo/native-github-asana-sync@v1.1
58+ with :
59+ asana-pat : ${{ secrets.GH_ASANA_SECRET }}
60+ asana-project : ${{ vars.GH_ANDROID_APP_PROJECT_ID }}
61+ asana-section : ${{ vars.GH_ANDROID_APP_INCOMING_SECTION_ID }}
62+ asana-task-name : GH Workflow Failure - Update Release Notes
63+ asana-task-description : Update Release Notes in Play Store and Github has failed. See https://github.com/duckduckgo/Android/actions/runs/${{ github.run_id }}
64+ action : ' create-asana-task'
0 commit comments