Skip to content

Update libs from CodeOnTheGo #10

Update libs from CodeOnTheGo

Update libs from CodeOnTheGo #10

Workflow file for this run

name: Update libs from CodeOnTheGo
on:
workflow_dispatch:
inputs:
ref:
description: CodeOnTheGo branch or tag to build from
required: false
default: stage
permissions:
contents: write
jobs:
update-libs:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout plugin-examples
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-disabled: true
add-job-summary: 'never'
- name: Run update-libs script
env:
REF: ${{ github.event.inputs.ref }}
run: ./scripts/update-libs.sh --ref "$REF"
- name: Upload Beepy CGP
uses: actions/upload-artifact@v4
with:
name: beepy
path: Beepy/build/plugin/*.cgp
if-no-files-found: error
- name: Upload apk-viewer CGP
uses: actions/upload-artifact@v4
with:
name: apk-viewer
path: apk-viewer/build/plugin/*.cgp
if-no-files-found: error
- name: Upload markdown-preview CGP
uses: actions/upload-artifact@v4
with:
name: markdown-preview
path: markdown-preview/build/plugin/*.cgp
if-no-files-found: error
- name: Upload keystore-generator CGP
uses: actions/upload-artifact@v4
with:
name: keystore-generator
path: keystore-generator/build/plugin/*.cgp
if-no-files-found: error
- name: Upload snippets CGP
uses: actions/upload-artifact@v4
with:
name: snippets
path: snippets/build/plugin/*.cgp
if-no-files-found: error
- name: Upload ndk-installer CGP
uses: actions/upload-artifact@v4
with:
name: ndk-installer
path: ndk-installer-plugin/build/plugin/*.cgp
if-no-files-found: error
- name: Commit updated jars
run: |
sha=$(git -C .cache/CodeOnTheGo rev-parse --short HEAD)
git config user.name "ADFA"
git config user.email "dev-team@appdevforall.org"
git add libs/
if git diff --cached --quiet; then
echo "No changes to libs/ — nothing to commit."
exit 0
fi
git commit -m "chore: update libs from CodeOnTheGo@${sha}"
git push