Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
6ecef870
Commit
6ecef870
authored
2 years ago
by
Tim van Dijen
Browse files
Options
Downloads
Patches
Plain Diff
Add job to trigger docs build
parent
dc5ad307
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/documentation.yml
+70
-0
70 additions, 0 deletions
.github/workflows/documentation.yml
.github/workflows/php.yml
+4
-4
4 additions, 4 deletions
.github/workflows/php.yml
.markdownlintignore
+1
-0
1 addition, 0 deletions
.markdownlintignore
with
75 additions
and
4 deletions
.github/workflows/documentation.yml
0 → 100644
+
70
−
0
View file @
6ecef870
name
:
Documentation
on
:
push
:
branches
:
[
master
,
release-*
]
paths
:
-
'
**.md'
pull_request
:
branches
:
[
master
,
release-*
]
paths
:
-
'
**.md'
jobs
:
quality
:
name
:
Quality checks
runs-on
:
[
ubuntu-latest
]
steps
:
-
name
:
Setup PHP, with composer and extensions
uses
:
shivammathur/setup-php@v2
#https://github.com/shivammathur/setup-php
with
:
php-version
:
'
8.0'
tools
:
composer:v2
extensions
:
intl, mbstring, xml
-
name
:
Setup problem matchers for PHP
run
:
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
-
uses
:
actions/checkout@v3
-
name
:
Get composer cache directory
id
:
composer-cache
run
:
echo "::set-output name=dir::$(composer config cache-files-dir)"
-
name
:
Cache composer dependencies
uses
:
actions/cache@v3
with
:
path
:
${{ steps.composer-cache.outputs.dir }}
key
:
${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys
:
${{ runner.os }}-composer-
-
name
:
Install Composer dependencies
run
:
composer install --no-progress --prefer-dist --optimize-autoloader
-
name
:
Lint markdown files
uses
:
nosborn/github-action-markdown-cli@v3.1.0
with
:
files
:
.
ignore_path
:
.markdownlintignore
build
:
name
:
Build documentation
needs
:
quality
runs-on
:
[
ubuntu-latest
]
steps
:
-
name
:
Run docs build if any of markdown-files have changed
if
:
steps.changed-files-specific.outputs.any_changed == 'true' && github.event_name != 'pull_request'
uses
:
actions/github-script@v6
with
:
# Token has to be generated on a user account that controls the docs-repository.
# The _only_ scope to select is "Access public repositories", nothing more.
github-token
:
${{ secrets.PAT_TOKEN }}
script
:
|
await github.rest.actions.createWorkflowDispatch({
owner: 'simplesamlphp',
repo: 'docs',
workflow_id: 'mk_docs.yml',
ref: 'main'
})
This diff is collapsed.
Click to expand it.
.github/workflows/php.yml
+
4
−
4
View file @
6ecef870
...
...
@@ -37,7 +37,7 @@ jobs:
git config --global core.autocrlf false
git config --global core.eol lf
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
3
-
name
:
Get composer cache directory
id
:
composer-cache
...
...
@@ -91,7 +91,7 @@ jobs:
-
name
:
Setup problem matchers for PHP
run
:
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
3
-
name
:
Get composer cache directory
id
:
composer-cache
...
...
@@ -132,7 +132,7 @@ jobs:
-
name
:
Setup problem matchers for PHP
run
:
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
3
-
name
:
Get composer cache directory
id
:
composer-cache
...
...
@@ -170,7 +170,7 @@ jobs:
-
name
:
Setup problem matchers for PHP
run
:
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
-
uses
:
actions/checkout@v
2
-
uses
:
actions/checkout@v
3
-
name
:
Get composer cache directory
id
:
composer-cache
...
...
This diff is collapsed.
Click to expand it.
.markdownlintignore
0 → 100644
+
1
−
0
View file @
6ecef870
vendor/*
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment