forked from microsoft/PSRule.Monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically update dependencies microsoft#84
- Loading branch information
1 parent
cd86344
commit 26bc3c9
Showing
6 changed files
with
298 additions
and
79 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# | ||
# Automated dependency updates | ||
# | ||
|
||
# NOTES: | ||
# This automatically bumps PowerShell dependency versions. | ||
|
||
name: Dependencies | ||
on: | ||
schedule: | ||
- cron: '45 1 * * 1' # At 01:45 AM, on Monday each week | ||
workflow_dispatch: | ||
|
||
env: | ||
WORKING_BRANCH: dependencies/powershell-bump | ||
|
||
jobs: | ||
dependencies: | ||
name: Bump dependencies | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'microsoft/PSRule.Monitor' | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure | ||
run: | | ||
git config user.name github-actions | ||
git config user.email '41898282+github-actions[bot]@users.noreply.github.com' | ||
- name: Get working branch | ||
run: | | ||
git checkout -B ${{ env.WORKING_BRANCH }} --force | ||
- name: Check dependencies | ||
run: | | ||
Import-Module ./scripts/dependencies.psm1; | ||
Update-Dependencies -Path ./modules.json; | ||
shell: pwsh | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"dependencies": { | ||
"PSRule": { | ||
"version": "1.6.0" | ||
} | ||
}, | ||
"devDependencies": { | ||
"Pester": { | ||
"version": "5.3.3" | ||
}, | ||
"platyPS": { | ||
"version": "0.14.2" | ||
}, | ||
"PSDocs": { | ||
"version": "0.9.0" | ||
}, | ||
"PSScriptAnalyzer": { | ||
"version": "1.20.0" | ||
} | ||
} | ||
} |
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
Oops, something went wrong.