Bump drupal/limited_field_widgets from 2.1.0-beta2 to 2.1.0-beta3 #208
Workflow file for this run
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: Rebuild Tugboat Preview | |
on: | |
pull_request: | |
types: | |
- synchronize | |
paths-ignore: | |
- '**.md' | |
jobs: | |
tugboat_rebuild_preview: | |
runs-on: self-hosted | |
env: | |
NODE_EXTRA_CA_CERTS: /etc/ssl/certs/ca-certificates.crt | |
name: Rebuild Tugboat Preview | |
steps: | |
- name: Restore Preview ID | |
uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3 | |
with: | |
path: .tugboat_preview.txt | |
key: ${{ runner.os }}-tugboat-preview-id-pr-${{ github.event.pull_request.number }} | |
- name: Set Preview ID | |
run: | | |
if ! [ -f .tugboat_preview.txt ]; then | |
echo "Preview ID not found, please manually rebuild Tugboat Preview. Contact platform-cms-qa on Github or CMS QA Engineers in #cms-support on Slack for assistance." | |
exit 1 | |
fi | |
PREVIEW_ID=$(cat .tugboat_preview.txt) | |
echo "Preview ID: ${PREVIEW_ID}" | |
echo "PREVIEW_ID=$PREVIEW_ID" >> $GITHUB_ENV | |
- name: Cleanup temporary file | |
run: rm .tugboat_preview.txt | |
- name: Rebuild Tugboat Preview | |
run: | | |
curl --fail \ | |
-H "Authorization: Bearer ${{ secrets.TUGBOAT_API_TOKEN }}" \ | |
-H "Content-Type: application/json" \ | |
-X POST \ | |
-d '{ "children": "false", "force": "false" }' \ | |
https://api.tugboat.vfs.va.gov/v3/previews/${{ env.PREVIEW_ID }}/rebuild |