Skip to content

Bump picomatch from 2.2.2 to 2.3.2 in /lint/config #198

Bump picomatch from 2.2.2 to 2.3.2 in /lint/config

Bump picomatch from 2.2.2 to 2.3.2 in /lint/config #198

Workflow file for this run

name: QA pull request
permissions:
contents: write
pull-requests: write
on:
pull_request:
types: [ labeled ]
jobs:
build:
name: Building QA site to review pull request.
if: contains(github.event.pull_request.labels.*.name, 'qa-pull-request')
runs-on: ubuntu-latest
steps:
- name: Checkout source.
uses: actions/checkout@v4
- name: Find and replace the main site domain.
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "accessibility.civicactions.com"
replace: "accessibility-qa.civicactions.com"
- name: Replace contents of `_includes/meta.html`.
uses: jacobtomlinson/gha-find-replace@v3
with:
find: '<meta http-equiv="X-UA-Compatible" content="IE=edge">'
replace: |
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="robots" content="noindex">
include: "_includes/meta.html"
- name: Install jekyll site dependencies.
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- name: Build jekyll site.
run: bundle exec jekyll build
- name: Push _site directory to QA repository.
uses: cpina/github-action-push-to-another-repository@v1.7.3
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: '_site'
destination-github-username: 'CivicActions'
destination-repository-name: 'accessibility-qa'
commit-message: See ORIGIN_COMMIT from $GITHUB_REF
target-branch: main
- name: Wait for 2 minutes for the QA site to be built after the changes are pushed.
uses: jakejarvis/wait-action@master
with:
time: '2m'
- name: Comment on pull request.
uses: thollander/actions-comment-pull-request@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: "You can test changes in this branch at [https://accessibility-qa.civicactions.com/](https://accessibility-qa.civicactions.com/). If you pushed additional changes and need to reapply them, remove and readd the label 'qa-pull-request'. The QA repo can be accessed at [https://github.com/CivicActions/accessibility-qa](https://github.com/CivicActions/accessibility-qa)."