Skip to content

Commit edc1697

Browse files
authored
Merge pull request #14 from Heshdude/improving-automation
Improving automation
2 parents d1a3998 + a3cd44a commit edc1697

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ jobs:
1717
run: pip install toml && python generate.py ${{ env.GIT_DIFF }}
1818
- name: Minify generated installers
1919
run: ./minify.sh ${{ env.GIT_DIFF }}
20+
- name: Create a pull request for README.md & installers.toml updates
21+
uses: peter-evans/create-pull-request@v3
22+
with:
23+
commit-message: update README.md & installers.toml
24+
title: Update README.md & installers.toml
25+
body: Update README.md & installers.toml for the changes to the installer scripts
26+
branch: update-readme-md-and-installers-toml
2027
- name: Archive Production Artifact
2128
uses: actions/upload-artifact@master
2229
with:

.github/workflows/dockerimage.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
21
name: Run tests
32

43
on:
5-
64
push:
75
branches: [ master ]
86

97
pull_request:
108
branches: [ master ]
119

12-
1310
jobs:
1411

1512
test-on-ubuntu:
16-
1713
runs-on: ubuntu-latest
1814
steps:
19-
- uses: actions/checkout@v2
20-
- uses: technote-space/get-diff-action@v1
21-
- name: Get the list of modified files only
22-
run: pip install toml pytablewriter && python generate.py ${{ env.GIT_DIFF }} && docker build -t shellspec . && docker run -v $PWD:/app shellspec bash -c "cd /app && ./test.sh ${{ env.GIT_DIFF }}"
15+
- uses: actions/checkout@v2
16+
- uses: technote-space/get-diff-action@v1
17+
- name: Run tests for the modified/ added files
18+
run: |
19+
pip install toml pytablewriter
20+
python generate.py ${{ env.GIT_DIFF }}
21+
docker build -t shellspec .
22+
docker run -v $PWD:/app shellspec bash -c "cd /app && ./test.sh ${{ env.GIT_DIFF }}"

0 commit comments

Comments
 (0)