Skip to content

Commit 781d020

Browse files
authored
Refactor action.yml by removing unused steps
Removed unnecessary folder creation steps and updated paths.
1 parent 0c67f75 commit 781d020

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

action.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ runs:
3535
with:
3636
node-version: 20.12.2
3737

38-
- name: Create GitStream folder
39-
shell: bash
40-
run: |
41-
rm -rf gitstream && rm -rf code && mkdir gitstream
42-
cd gitstream && mkdir repo
43-
4438
- name: Checkout base branch
4539
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
4640
with:
@@ -91,10 +85,6 @@ runs:
9185
git checkout $'${{ steps.safe-strings.outputs.base_ref }}'
9286
git checkout $'${{ steps.safe-strings.outputs.head_ref }}'
9387
94-
- name: Create cm folder
95-
shell: bash
96-
run: cd gitstream && mkdir cm
97-
9888
- name: Checkout cm repo
9989
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
10090
if: ${{ fromJSON(fromJSON(inputs.client_payload)).hasCmRepo == true }}
@@ -113,16 +103,13 @@ runs:
113103
path: gitstream/cm/
114104
fetch-depth: 1
115105

116-
- name: Volume folder
117-
shell: bash
118-
run: mv gitstream code
119-
120106
- name: Install Dependencies for plugins
121107
shell: bash
122108
continue-on-error: true
123109
run: npm i --silent moment lodash axios @octokit/rest@20.1.1
124110

125111
- name: Run RulesEngine
112+
working-directory: gitstream/repo
126113
shell: bash
127114
run: node ${{ github.action_path }}/dist/index.js
128115
env:
@@ -141,4 +128,4 @@ runs:
141128
with:
142129
retention-days: 7
143130
name: output
144-
path: code/output
131+
path: gitstream/output

0 commit comments

Comments
 (0)