-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c33035
commit 3883bca
Showing
1 changed file
with
21 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,30 @@ | ||
name: Formatting and Snippets | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: packages/approval_tests | ||
|
||
format_and_snippets: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 📚 Git Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: ♻️ Run MarkdownSnippets | ||
run: | | ||
dotnet tool install --global MarkdownSnippets.Tool | ||
mdsnippets ${GITHUB_WORKSPACE} | ||
shell: bash | ||
- name: 📚 Git Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: packages/approval_tests | ||
|
||
- name: ♻️ Run MarkdownSnippets | ||
run: | | ||
dotnet tool install --global MarkdownSnippets.Tool | ||
mdsnippets ${GITHUB_WORKSPACE} | ||
shell: bash | ||
working-directory: packages/approval_tests | ||
|
||
- name: ⬆️ Git Commit and Push | ||
uses: github-actions-x/[email protected] | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
commit-message: ". d updated markdown snippets" | ||
rebase: 'true' | ||
push-branch: 'main' | ||
name: github actions | ||
email: [email protected] | ||
- name: ⬆️ Git Commit and Push | ||
run: | | ||
git config --global user.name "github actions" | ||
git config --global user.email "[email protected]" | ||
git add . | ||
git commit -m ". d updated markdown snippets" | ||
git push origin main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
working-directory: packages/approval_tests |