Skip to content

dispatch-single-icu #12

dispatch-single-icu

dispatch-single-icu #12

name: 'dispatch-single-icu'
on:
workflow_dispatch:
inputs:
icu:
description: ICU version
required: true
rebuild:
description: rebuild
required: false
jobs:
icu:
runs-on: ubuntu-20.04
name: icu4c
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build icu
env:
ICU: ${{ github.event.inputs.icu }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WORKSPACE: ${{ github.workspace }}
run: |
existing_version=$(gh release view icu4c 2>/dev/null | grep -Po $ICU | head -n 1)
if [ "$ICU" != "$existing_version" ] || [ "x${{github.event.inputs.rebuild}}" = "xtrue" ]; then
bash src/build-icu4c.sh
bash src/release-icu4c.sh
else
echo "icu4c $ICU build exists"
fi