Skip to content

Commit

Permalink
Improve generate_package_wiki.yml
Browse files Browse the repository at this point in the history
- Pin `actions/checkout` GitHub Action by commit-hash
- Remove unneeded shell tag, as it was set to the default
- Explain why `git add .` is needed
  • Loading branch information
Ana06 committed Jan 9, 2025
1 parent ab565b8 commit 33c57b8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/generate_package_wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Checkout Wiki Repo
uses: actions/checkout@v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
repository: ${{ github.repository }}.wiki
path: wiki
Expand All @@ -24,14 +24,13 @@ jobs:

- name: Generate Wiki Content
id: generate-content
shell: pwsh
run: scripts/utils/generate_package_wiki.ps1

- name: Commit changes
working-directory: wiki
run: |
git config user.email '[email protected]'
git config user.name 'vm-packages'
git add .
git add . # Create page if it doesn't exist
git commit -am "Update Package Wiki"
git push

0 comments on commit 33c57b8

Please sign in to comment.