blob: af5be45ade2ccb01f9534256ecb7584f522719e1 (
plain)
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
|
name: Create Snapshot
on:
schedule:
# Every day at 4pm
- cron: "0 16 * * *"
workflow_dispatch:
jobs:
make-snapshot:
name: Make a nightly snapshot
runs-on: ubuntu-latest
if: github.repository == 'Icinga/icinga-php-thirdparty'
steps:
- name: Checkout code base
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Prepare Git environment
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
echo '{"github-oauth": {"github.com": "${{ secrets.ICINGABOT_TOKEN }}"}}' > auth.json
echo 'auth.json' >> .gitignore
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '5.6'
- name: Create snapshot/nightly
if: success()
run: bin/make-snapshot.sh snapshot/nightly
- name: Push snapshot/nightly
if: success()
run: git push -f origin snapshot/nightly
|