Skip to content

Autoupdate

Autoupdate #344

Workflow file for this run

name: Autoupdate
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
workflow_call:
concurrency:
group: "${{ github.workflow }} @ ${{ github.ref }}"
cancel-in-progress: false
permissions:
contents: write
actions: write
jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
updated: ${{ steps.autoupdate.outputs.updated }}
version: ${{ steps.autoupdate.outputs.version }}
steps:
- name: Checkout repo
id: checkout_repo
uses: actions/checkout@v5
with:
path: "tmp"
ref: "main"
- name: Autoupdate
id: autoupdate
uses: siarheidudko/autoupdater@v6
with:
author-email: "[email protected]"
author-name: "Siarhei Dudko"
working-directory: ${{ github.workspace }}/tmp
ref: ${{ github.repository }}
branch: "main"
builds-and-checks: |
npm run lint
npm run build
npm run test:ts
debug: "true"
ignore-packages: |
@types/node
deploy:
runs-on: ubuntu-latest
needs: update
if: needs.update.outputs.updated == 'true'
steps:
- name: Trigger Build and Deploy Workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: build-and-deploy.yml
ref: main
inputs: '{ "tag": "${{ needs.update.outputs.version }}" }'