Skip to content

ci: correcting TOTP_APP_VERSION_META generation #8

ci: correcting TOTP_APP_VERSION_META generation

ci: correcting TOTP_APP_VERSION_META generation #8

name: Update OFW branch
on:
workflow_dispatch:
push:
branches:
- master
jobs:
update-ofw-catalog-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: "recursive"
ref: master_ofw-catalog
- run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git fetch origin
git reset --hard origin/master
- run: |
sed -i 's/appid="totp",/appid="totp",\n fal_embedded=True,/' totp/application.fam
printf "\n#define TOTP_APP_VERSION_META \"$(git rev-parse --short HEAD).ofw-catalog\"\n" >> totp/version.h
- run: |
git commit -am "chore: Applied OFW catalog changes"
git push -u --force origin master_ofw-catalog