start to create docker compose things but hey, that's ok
This commit is contained in:
parent
f40b429b92
commit
47b6370d98
8 changed files with 5025 additions and 3152 deletions
|
@ -1,36 +1,40 @@
|
|||
name: Check for Minor Dependency Updates
|
||||
name: Update Minor Dependencies and Build Container
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # Runs every day at midnight (UTC)
|
||||
workflow_dispatch: # Allows manual triggering
|
||||
- cron: '0 0 * * *' # Runs every night at midnight (UTC)
|
||||
workflow_dispatch: # Allows manual triggering
|
||||
|
||||
jobs:
|
||||
check-dependencies:
|
||||
update-dependencies:
|
||||
runs-on: docker
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.FORGEJO_TOKEN }} # Make sure to add this token in your repo secrets
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '20' # Adjust the Node.js version as needed
|
||||
node-version: '20' # Adjust as needed
|
||||
|
||||
- name: Install Dependencies
|
||||
- name: Configure npm version
|
||||
run: npm install
|
||||
|
||||
- name: Check for Minor Updates
|
||||
run: npx npm-check-updates --target minor
|
||||
- name: Check and Update Minor Dependencies
|
||||
run: npx npm-check-updates --target minor -u
|
||||
|
||||
- name: Save ncu Results
|
||||
- name: Install Updated Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Commit and Push Changes
|
||||
run: |
|
||||
npx npm-check-updates --target minor > ncu-report.txt
|
||||
cat ncu-report.txt
|
||||
|
||||
- name: Upload Report as Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ncu-report
|
||||
path: ncu-report.txt
|
||||
git config --global user.name "forgejo-bot"
|
||||
git config --global user.email "bot@pweapon.org"
|
||||
git add package.json
|
||||
git commit -m "chore: update minor dependencies"
|
||||
git push origin HEAD:${GITHUB_REF#refs/heads/}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue