-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (43 loc) · 1.35 KB
/
deploy.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
41
42
43
44
name: Build SAs every night
on:
# manually
workflow_dispatch:
# also on webhooks
repository_dispatch:
pull_request:
push:
branches:
- master
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '30 21 * * *'
jobs:
build:
name: Build SAs nightly
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- uses: actions/checkout@v2
- uses: ./deploy/
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
- name: yaml permissions
if: github.ref == 'refs/heads/master'
run: |
git config core.fileMode false
sudo chmod -R 777 sa_yaml
git status
git add sa_yaml
- name: Create Pull Request
if: github.ref == 'refs/heads/master'
with:
body: This here PR, although it looks like it's made by me, is totally made by computers in the cloud ☁️
token: ${{ secrets.PAT }}
commit-message: "Drupal Contrib SA ${{ steps.date.outputs.date }}"
title: "Drupal Contrib SA ${{ steps.date.outputs.date }}"
id: cpr
uses: peter-evans/create-pull-request@v3