Skip to content

Commit

Permalink
Added push to drupal.org action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklan committed Nov 12, 2021
1 parent a789ac2 commit 51bb30d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/push-to-drupal-org.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Push changes to drupal.org

on:
workflow_dispatch:
push:

env:
SSH_KEY: ${{ secrets.drupal_org_key }}
DRUPAL_ORG_REPO: git@git.drupal.org:project/yandex_yml.git

jobs:
push:
runs-on: ubuntu-latest
steps:
- name: 'Create SSH key'
run: |
mkdir -p ~/.ssh
echo "$SSH_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
cat >>~/.ssh/config <<END
- name: 'Added remote'
run: git remote add drupalorg $DRUPAL_ORG_REPO

- name: 'Push changes'
run: git push drupalorg --all

0 comments on commit 51bb30d

Please sign in to comment.