Skip to content

dispatch-single-php-all-icu-intl #19

dispatch-single-php-all-icu-intl

dispatch-single-php-all-icu-intl #19

name: 'dispatch-single-php-all-icu-intl'
on:
workflow_dispatch:
inputs:
php:
description: PHP version
required: true
rebuild:
description: rebuild
required: false
jobs:
php-intl:
container: ubuntu:focal
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
icu: [50.2, 51.3, 52.2, 53.2, 54.2, 55.2, 56.2, 57.2, 58.3, 59.2, 60.3, 61.2, 62.2, 63.2, 64.2, 65.1, 66.1, 67.1, 68.1, 68.2, 69.1, 70.1, 71.1, 72.1, 73.1, 73.2, 74.1, 74.2]
ts: [nts, zts]
name: php-intl
steps:
- name: ${{github.event.inputs.icu}}
id: print_details
run: |
echo sender=${{github.event.sender.login}}
echo PHP=${{github.event.inputs.php}}
- name: Checkout
uses: actions/checkout@v4
- name: Install requirements
run: bash src/install-requirements.sh
env:
VERSION: ${{github.event.inputs.php}}
TS: ${{ matrix.ts }}
- name: Checkout
uses: actions/checkout@v4
- name: Update intl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ICU: ${{ matrix.icu }}
REPO: ${{ github.repository }}
TS: ${{ matrix.ts }}
VERSION: ${{github.event.inputs.php}}
WORKSPACE: ${{ github.workspace }}
run: |
existing_version=$(gh release view intl 2>/dev/null | grep -Po "$VERSION-$ICU" | head -n 1)
if [ "$VERSION-$ICU" != "$existing_version" ] || [ "x${{github.event.inputs.rebuild}}" = "xtrue" ]; then
bash src/build-intl.sh
bash src/release-intl.sh
else
echo "intl $VERSION-$ICU build exists"
fi