Skip to content

Update release manifest and bump patch #6

Update release manifest and bump patch

Update release manifest and bump patch #6

Workflow file for this run

name: Record production release and bump patch
on:
workflow_dispatch:
jobs:
release:
name: Update manifest and bump patch
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 0
ref: "code/cash"
- name: Decode Service Account Key JSON file
uses: timheuer/base64-to-file@v1
id: service_account_json_file
with:
fileName: serviceAccount.json
encodedString: ${{ secrets.FLIPCASH_SERVICE_ACCOUNT_KEY_JSON }}
- name: Update release manifest
id: manifest
env:
SERVICE_ACCOUNT_KEY_JSON: ${{ steps.service_account_json_file.outputs.filePath }}
run: bash scripts/update-release-manifest.sh
- name: Commit & Push changes
uses: actions-js/push@master
with:
message: >-
${{ steps.manifest.outputs.prod_changed == 'true'
&& format('build: release versionCode {0}, bump Flipcash to {1}', steps.manifest.outputs.new_prod, steps.manifest.outputs.version)
|| 'build: refresh release manifest' }}
branch: "code/cash"
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}