mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-27 10:14:14 +00:00
added workflow to trigger script
This commit is contained in:
parent
e20ed8d3f4
commit
4561cbf379
29
.github/workflows/test-all-patches-action.yml
vendored
Normal file
29
.github/workflows/test-all-patches-action.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Test all Patches
|
||||||
|
run-name: Test all Patches for ${{ github.event.repository.updated_at }}
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
gollum: # on wiki edit
|
||||||
|
jobs:
|
||||||
|
Start Action:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: echo "This was automatically triggered by a ${{ github.event_name }} event."
|
||||||
|
|
||||||
|
- name: Check out main
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
path: src-dir
|
||||||
|
|
||||||
|
- name: Check out Wiki
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: ${{ github.repository }}.wiki
|
||||||
|
path: wiki-dir
|
||||||
|
|
||||||
|
- name: List files in the repository
|
||||||
|
run: |
|
||||||
|
ls ${{ github.workspace }}
|
||||||
|
ls
|
||||||
|
|
||||||
|
- name: Run Tests
|
||||||
|
run: ./testPatches.sh ./src-dir ./wiki-dir
|
||||||
6
.github/workflows/testPatches.sh
vendored
6
.github/workflows/testPatches.sh
vendored
@ -4,11 +4,11 @@ update_line() {
|
|||||||
local line="$1" # line from opened file is passed in
|
local line="$1" # line from opened file is passed in
|
||||||
local testResult="$2" # result from git diff
|
local testResult="$2" # result from git diff
|
||||||
|
|
||||||
echo "Processing line: $line with additional argument: $additional_argument"
|
echo "Processing line: $line with additional argument: $testResult"
|
||||||
}
|
}
|
||||||
|
|
||||||
wikiDirectory=./dwl.wiki
|
dwlSrcDirectory="$1"
|
||||||
dwlSrcDirectory=./dwl
|
wikiDirectory="$2"
|
||||||
patchRE="https://github\.com/[^/]+/[^/]+/compare/[^/]+\.patch"
|
patchRE="https://github\.com/[^/]+/[^/]+/compare/[^/]+\.patch"
|
||||||
|
|
||||||
for file in "$wikiDirectory"/*.md; do
|
for file in "$wikiDirectory"/*.md; do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user