mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-07 01:54:23 +00:00
Delete update-test.yml
This commit is contained in:
64
.github/workflows/update-test.yml
vendored
64
.github/workflows/update-test.yml
vendored
@@ -1,64 +0,0 @@
|
||||
name: TEMP Update Hugo dependencies
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 3 * * *' # run daily at 03:00 AM
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
update-mod:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node-version: [20.x]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
cache-dependency-path: '**/package-lock.json'
|
||||
|
||||
- name: Perform clean install of npm
|
||||
run: npm ci
|
||||
|
||||
- name: Update Hugo module dependencies
|
||||
id: mod-updates
|
||||
run: |
|
||||
MOD_OUTPUT=$(npm run mod:update 2>&1)
|
||||
echo "$MOD_OUTPUT"
|
||||
MOD_UPDATES=$(echo "$MOD_OUTPUT" | grep '^go: upgraded' | sed 's/go: / - /' | sort -u)
|
||||
echo 'MOD_UPDATES<<EOF' >> $GITHUB_OUTPUT
|
||||
echo "$MOD_UPDATES" >> "$GITHUB_OUTPUT"
|
||||
echo 'EOF' >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Create pull request
|
||||
uses: gethinode-actions/create-pull-request@v5
|
||||
with:
|
||||
token: ${{ secrets.HUGO_MOD_PR }}
|
||||
commit-message: 'fix: update Hugo module dependencies'
|
||||
committer: GitHub <noreply@github.com>
|
||||
branch: hugo-mod-dependencies
|
||||
delete-branch: true
|
||||
draft: true
|
||||
title: 'Update Hugo module dependencies'
|
||||
body: |
|
||||
This PR is auto-generated on $(date +%d-%m-%Y) by [create-pull-request][1].
|
||||
|
||||
Changes to go.mod:
|
||||
|
||||
${{ steps.mod-updates.outputs.MOD_UPDATES }}
|
||||
|
||||
[1]: https://github.com/peter-evans/create-pull-request
|
||||
labels: dependencies
|
||||
add-paths: |
|
||||
**/go.mod
|
||||
**/go.sum
|
Reference in New Issue
Block a user