-
Notifications
You must be signed in to change notification settings - Fork 12
40 lines (39 loc) · 1.12 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Pantheon Advanced Page Cache
on:
push:
jobs:
phpcompatibility:
runs-on: ubuntu-latest
name: PHP Compatibility
steps:
- name: Checkout
uses: actions/checkout@v2
- name: PHPCompatibility
uses: pantheon-systems/phpcompatibility-action@v1
with:
test-versions: 7.4-
mirror:
runs-on: ubuntu-latest
name: Checkout & push to remote
needs: [phpcompatibility]
if: ${{ github.repository == 'pantheon-systems/pantheon_advanced_page_cache' }}
env:
BRANCH: ${{ github.ref_name }}
WORKSPACE: ${{ github.workspace }}
DRUPAL_ORG_REMOTE: ${{ secrets.DRUPAL_ORG_REMOTE }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: ignore
- name: Pushes to drupal.org repository
run: |
cd $WORKSPACE
git remote add drupalorg $DRUPAL_ORG_REMOTE
git push drupalorg $BRANCH