Skip to content

Commit 3df5ee0

Browse files
committed
Build action
1 parent 538f7e8 commit 3df5ee0

File tree

7 files changed

+6031
-0
lines changed

7 files changed

+6031
-0
lines changed

.github/workflows/ci.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CI
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v1
9+
- name: Build
10+
run: |
11+
npm ci
12+
npm run build
13+
- uses: ./
14+
id: package
15+
with:
16+
path: package.json

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# read-migration-files-action
2+
3+
Read Django migration files content.
4+
5+
## Usage
6+
7+
```yaml
8+
steps:
9+
- name: Read migrations
10+
id: migrations
11+
uses: komorebitech/read-migration-files-action@v1
12+
with:
13+
files: ['/migrations/001_initial.py', '/migrations/002_auto_2020_08_11_545462.py']
14+
- name: Echo migrations
15+
run: echo ${{ steps.migrations.outputs.content }}
16+
```
17+
18+
## License
19+
20+
MIT

action.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Read Django Migrtation file
2+
author: debugger22
3+
description: 'Read Django Migration files content'
4+
branding:
5+
icon: 'file'
6+
color: yellow
7+
inputs:
8+
files:
9+
description: 'File paths'
10+
required: true
11+
outputs:
12+
content:
13+
description: 'Concatenated content of the files'
14+
runs:
15+
using: 'node12'
16+
main: 'dist/index.js'

0 commit comments

Comments
 (0)