Skip to content

ICU-22482 Hash-pin GitHub Actions, keep them updated with Dependabot #42

ICU-22482 Hash-pin GitHub Actions, keep them updated with Dependabot

ICU-22482 Hash-pin GitHub Actions, keep them updated with Dependabot #42

Workflow file for this run

# Copyright (C) 2016 and later: Unicode, Inc. and others.
# License & terms of use: http://www.unicode.org/copyright.html
#
# GitHub Action configuration script for ICU continuous integration tasks.
name: GHA ICU Docs
on:
push:
branches:
- main
- 'maint/maint*'
paths:
- 'docs/**'
- '.github/workflows/**'
pull_request:
branches: '**'
paths:
- 'docs/**'
- '.github/workflows/**'
workflow_dispatch:
# To trigger the Env Test workflow manually, follow the instructions in
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
permissions:
contents: read
jobs:
# Build job
# Keep in sync with deploy workflow in `jekyll-gh-pages.yml`
test-docs-build:
name: Test build of User Guide docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
ruby-version: '2.7.4' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@f156874f8191504dae5b037505266ed5dda6c382 # v3.0.6
with:
generator_config_file: docs/_config.yml
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: |
cd docs # root directory of markdown, also contains Jekyll configs, etc.
bundle install
# The baseurl arg is parsed from the `baseurl` field of _config.yml.
bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production