Skip to content

Update CTAs “dream-migration” #557

Update CTAs “dream-migration”

Update CTAs “dream-migration” #557

Workflow file for this run

name: My Workflow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v2
with:
find: 'data-netlify="true"'
replace: " "
regex: false
include: 'theme/migrations.html'
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v2
with:
find: 'data-netlify="true"'
replace: " "
regex: false
include: 'theme/automations.html'
- name: Find and Replace
uses: nguyenvanuyn96/str-find-and-replace-action@master
with:
find: '<script type="module">import\*as UdeslyBanner from"https://cdn\.jsdelivr\.net/npm/udesly-ad-banner@0\.0\.4/loader/index\.js";UdeslyBanner\.defineCustomElements\(\),document\.body\.append\(document\.createElement\("udesly-banner"\)\);</script>'
replace: ""
- name: Find and Replace
uses: nguyenvanuyn96/str-find-and-replace-action@master
with:
find: '<script src="/assets/js/udesly-11ty\.min\.js" async="" defer=""></script>\{\{ settings\.site\.footer_additional_content \}\}<script type="module">import\*as UdeslyBanner from"https://cdn\.jsdelivr\.net/npm/udesly-ad-banner@0\.0\.1/loader/index\.js";UdeslyBanner\.defineCustomElements\(\),document\.body\.append\(document\.createElement\("udesly-banner"\)\);</script>'
replace: ""
- name: Find and Replace
uses: nguyenvanuyn96/str-find-and-replace-action@master
with:
find: '<script type="module">import\*as UdeslyBanner from"https://cdn\.jsdelivr\.net/npm/udesly-ad-banner@0\.0\.1/loader/index\.js";UdeslyBanner\.defineCustomElements\(\),document\.body\.append\(document\.createElement\("udesly-banner"\)\);</script>'
replace: ""
- name: Find and Replace
uses: nguyenvanuyn96/str-find-and-replace-action@master
with:
find: '<script src="https://identity\.netlify\.com/v1/netlify-identity-widget\.js"></script>'
replace: '<script src="https://identity.netlify.com/v1/netlify-identity-widget.js" async></script>'
- name: Replace { automated_seo } tag in HTML files
run: |
find . -name '*.html' -exec sed -i 's|{ automated_seo }|{% assign clean_title = title | escape %}\n{% assign clean_description = seo.description | escape %}\n{% assign og_image_url = '\''https://codemod-open-graph.vercel.app/api/registry?Title='\'' | append: clean_title | append: '\''&Description='\'' | append: clean_description | append: '\''&Tag=Codemod Registry'\'' | replace: '\''amp;'\'', '\''xx'\'' %}\n<meta property="og:title" content="{{ clean_title }}">\n<meta property="og:description" content="{{ clean_description }}">\n<meta data-react-helmet="true" property="og:site_name" content="Codemod.com">\n<meta property="og:image" content="{{ og_image_url }}">\n<meta name="twitter:title" content="{{ clean_title }}">\n<meta name="twitter:card" content="{{ clean_description }}">\n<meta property="twitter:image" content="{{ og_image_url }}">|g' {} \;
- name: push
uses: actions-x/commit@v6
with:
token: ${{ secrets.ACTIONS_TOKEN }}