Skip to content

Merge pull request #337 from adobe/issue-336 #91

Merge pull request #337 from adobe/issue-336

Merge pull request #337 from adobe/issue-336 #91

Workflow file for this run

name: Release (Bookmarklet)
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
if: "${{ !contains(github.event.head_commit.message, '[skip ci]') }}"
steps:
- name: Checkout source repo
uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.SSH-KEY }}
- name: Checkout target repo
uses: actions/checkout@v3
with:
repository: adobe/helix-website
ref: main
path: _target
- name: Copy files from source to target repo
run: |
cp src/bookmarklet/app.js _target/tools/sidekick/
cp src/extension/module.js _target/tools/sidekick/
cp src/extension/app.css _target/tools/sidekick/
cp -r src/extension/_locales _target/tools/sidekick/
cp -r src/extension/view _target/tools/sidekick/
cp docs/config.schema.json _target/tools/sidekick/
mkdir -p _target/tools/sidekick/lib
cp src/extension/lib/process-queue.js _target/tools/sidekick/lib/
- name: Create branch commit and pull request in target repo
uses: peter-evans/create-pull-request@v5
with:
commit-message: "chore(sidekick): new release candidate [skip ci]"
token: ${{ secrets.PAT }}
path: _target
base: main
branch: sidekick-rc
branch-suffix: short-commit-hash
delete-branch: true
title: Sidekick Bookmarklet RC
body: This PR has been auto-generated from https://github.com/adobe/helix-sidekick-extension/.