Skip to content

Commit

Permalink
ci: automatically push new commits to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixep committed Aug 10, 2024
1 parent e48e4ab commit f530cee
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/push-to-internal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Push to private deploy repository

on:
push:
branches:
- '**'

jobs:
push:
if: github.actor == github.repository_owner
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Push changes
env:
GITHUB_TOKEN: ${{ secrets.GH_PUSH }}
run: |
git remote add target https://${{ secrets.GH_PUSH }}@github.com/Meaningful-Code/meaningfulcode-deploy.git
git push target HEAD:${{ github.ref }}

0 comments on commit f530cee

Please sign in to comment.