Skip to content

Commit

Permalink
Merge pull request #940 from dorssel/pacakages_action
Browse files Browse the repository at this point in the history
Add action to update packages.lock.json
  • Loading branch information
dorssel committed May 4, 2024
2 parents cd9c063 + c66cbda commit 746ee3a
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# SPDX-FileCopyrightText: 2024 Frans van Dorsselaer
#
# SPDX-License-Identifier: GPL-3.0-only

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json

name: pacakages.lock

on:
workflow_dispatch:
schedule:
- cron: '27 15 * * *'

permissions: read-all

jobs:
check:
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
# NOTE: caching seems to actually slow down the build, both on hit and on miss
cache: false
cache-dependency-path: '**/packages.lock.json'

- name: Evaluate dependencies
run: |
dotnet restore --force-evaluate
dotnet restore --force-evaluate Installer
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: 'Update packages.lock.json'
title: 'Update packages.lock.json'
branch: update-packages-lock
body: |
This is an automated pull request, updating `packages.lock.json` after a detected change.
Please review manually before merging.

0 comments on commit 746ee3a

Please sign in to comment.