Skip to content

Commit

Permalink
Add another GitHub Action Workflow for copying loopy-dash.el to its…
Browse files Browse the repository at this point in the history
… own branch. (#189)

Automatically copy the file `loopy-dash.el` to the branch `loopy-dash-only` when
merging into `master`.  This is to better support Non-GNU ELPA.
  • Loading branch information
okamsn authored Feb 25, 2024
1 parent 14a8a8e commit 650ddd7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/automatic-pr-to-dash-copy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Copy loopy-dash.el to other branch.
on:
push:
branches:
- main
- master

permissions:
contents: write

jobs:
copy_file:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: master
path: loopy
- uses: actions/checkout@v3
with:
ref: loopy-dash-only
path: loopy-dash
- name: Copy file to directory
run: cp loopy/loopy-dash.el loopy-dash/loopy-dash.el
- name: Commit new changes and push.
run: |
cd loopy-dash
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add --force loopy-dash.el
git commit --allow-empty -m "Automatic commit of changes from master branch."
git push
env:
USERNAME: github-actions[bot]

0 comments on commit 650ddd7

Please sign in to comment.