Skip to content

Commit 452c31c

Browse files
authored
Merge pull request #1 from openimis/add-merge
Add merge
2 parents 233a70e + 2776b9e commit 452c31c

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/merge-file.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Merge SQL files
2+
# This workflow run automatically for every commit on github it checks the syntax and launch the tests.
3+
# | grep . | uniq -c filters out empty lines and then groups consecutive lines together with the number of occurrences
4+
on:
5+
pull_request:
6+
workflow_dispatch:
7+
inputs:
8+
comment:
9+
description: Just a simple comment to know the purpose of the manual build
10+
required: false
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Merge me!
18+
run : bash concatenate_files.sh
19+
- name: Publish artifact
20+
uses: actions/upload-artifact@master
21+
with:
22+
name: sql-files
23+
path: output

concatenate_files.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
mkdir output
4+
cat database scripts/*.sql > output/fullDemoDatabase.sql

0 commit comments

Comments
 (0)