Skip to content

Commit dcbb930

Browse files
committed
ci: remove work dir
1 parent 97b955f commit dcbb930

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

.github/workflows/grept-cronjob.yml

-8
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ jobs:
8686
run: |
8787
echo "==> Checking code repository with grept against ${{ env.GREPT_CONFIG }}..."
8888
docker run --pull always --rm -v "$(pwd)":/src -w /src -e OVERRIDE_GITHUB_REPOSITORY="$OVERRIDE_GITHUB_REPOSITORY" -e OVERRIDE_GITHUB_REPOSITORY_OWNER="$OVERRIDE_GITHUB_REPOSITORY_OWNER" mcr.microsoft.com/azterraform:latest /usr/local/go/bin/grept apply --auto "${{ env.GREPT_CONFIG }}"
89-
working-directory: ${{ matrix.repo }}
9089
env:
9190
OVERRIDE_GITHUB_REPOSITORY: Azure/${{ matrix.repo }}
9291
OVERRIDE_GITHUB_REPOSITORY_OWNER: Azure
@@ -95,7 +94,6 @@ jobs:
9594
- name: avm pre-commit
9695
run: |
9796
./avm pre-commit
98-
working-directory: ${{ matrix.repo }}
9997
continue-on-error: true
10098
env:
10199
OVERRIDE_GITHUB_REPOSITORY: Azure/${{ matrix.repo }}
@@ -112,7 +110,6 @@ jobs:
112110
fi
113111
echo "Changes detected"
114112
echo 'detected=true' >> "$GITHUB_OUTPUT"
115-
working-directory: ${{ matrix.repo }}
116113
117114
- name: commit changes to branch and push to origin
118115
if: steps.changes.outputs.detected == 'true'
@@ -125,7 +122,6 @@ jobs:
125122
git add .
126123
git commit -m "fix: grept apply"
127124
git push --set-upstream origin "$BRANCH"
128-
working-directory: ${{ matrix.repo }}
129125
130126
- name: create PR body
131127
if: steps.changes.outputs.detected == 'true'
@@ -143,14 +139,12 @@ jobs:
143139
144140
Thanks! The AVM team :heart:
145141
EOF
146-
working-directory: ${{ matrix.repo }}
147142
148143
- name: show body
149144
if: steps.changes.outputs.detected == 'true'
150145
run: |
151146
echo "Displaying PR body:"
152147
cat prbody.md
153-
working-directory: ${{ matrix.repo }}
154148
155149
- name: create pull request
156150
if: steps.changes.outputs.detected == 'true'
@@ -160,7 +154,6 @@ jobs:
160154
echo pull-request-number=$(gh pr view $PR_URL --json number | jq -r '.number') >> "$GITHUB_OUTPUT"
161155
env:
162156
GH_TOKEN: ${{ steps.app-token.outputs.token }}
163-
working-directory: ${{ matrix.repo }}
164157

165158
- name: close and comment out of date prs
166159
if: steps.changes.outputs.detected == 'true'
@@ -169,7 +162,6 @@ jobs:
169162
echo "$PULL_REQUESTS" | jq -r '.[] | select(.number != ${{ steps.pr.outputs.pull-request-number }}) | .number' | xargs -I {} gh pr close {} --delete-branch --comment "Supersceeded by #${{ steps.pr.outputs.pull-request-number }}"
170163
env:
171164
GH_TOKEN: ${{ steps.app-token.outputs.token }}
172-
working-directory: ${{ matrix.repo }}
173165

174166
- name: sleep for rate limit
175167
if: ${{ always() }}

0 commit comments

Comments
 (0)