Skip to content

Commit 3c47c4a

Browse files
author
Koch, Corbinian
committed
Add CI job for satis repo update
1 parent 32b3b36 commit 3c47c4a

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

.github/workflows/update-satis.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Update Satis
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the master branch
8+
push:
9+
branches:
10+
- FRAMEWORK_6_0
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+
jobs:
16+
run:
17+
runs-on: ubuntu-20.04
18+
steps:
19+
- name: Setup github ssh key
20+
run: mkdir -p ~/.ssh/ && ssh-keyscan -t rsa github.com > ~/.ssh/known_hosts
21+
- name: Setup uut dir
22+
run: |
23+
export REPO=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//")
24+
export UUT_DIR=$(pwd)
25+
export WORK_DIR=~
26+
export BIN_DIR="${WORK_DIR}/bin"
27+
mkdir -p $BIN_DIR
28+
git config --global user.name "PHPDOC CI Job"
29+
git config --global user.email "ci-job@maintaina.com"
30+
- name: Checkout
31+
uses: actions/checkout@v2
32+
- name: Checkout satis web dir
33+
uses: actions/checkout@v2
34+
with:
35+
repository: maintaina-com/maintaina-com.github.io
36+
token: ${{secrets.PHPDOC_TOKEN}}
37+
path: "maintaina-com.github.io"
38+
- name: Setup PHP
39+
uses: shivammathur/setup-php@v2
40+
with:
41+
php-version: 7.4
42+
extensions: bcmath, ctype, curl, dom, gd, gettext, iconv, imagick, json, ldap, mbstring, mysql, opcache, openssl, pcntl, pdo, posix, redis, soap, sockets, sqlite, tokenizer, xmlwriter
43+
ini-values: post_max_size=512M, max_execution_time=3600
44+
coverage: xdebug
45+
tools: composer:v2
46+
- name: Setup Github Token as composer credential
47+
run: composer config -g github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
48+
- name: Run Satis
49+
run: |
50+
export UUT_DIR=$(pwd)
51+
export REPO=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//")
52+
export WORK_DIR=/home/runner/
53+
export BIN_DIR="${WORK_DIR}/bin"
54+
composer create-project composer/satis:dev-main
55+
php satis/bin/satis build -vvv maintaina-com.github.io/satis.json maintaina-com.github.io/ horde/stringprep
56+
cd maintaina-com.github.io
57+
git add include/ index.html p2/ packages.json
58+
git commit -m "Update for horde/stringprep"
59+
git push
60+
61+
62+
63+

0 commit comments

Comments
 (0)