dispatch-single-icu #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |