Skip to content

Dependency Updater: Github Action Workflow for Scheduled Updater Runs #44

Dependency Updater: Github Action Workflow for Scheduled Updater Runs

Dependency Updater: Github Action Workflow for Scheduled Updater Runs #44

name: Update Dockerfile Dependencies

Check failure on line 1 in .github/workflows/update-dependencies.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-dependencies.yml

Invalid workflow file

invalid `cron` attribute "0 12 * * * *"
on:
schedule:
- cron: '0 12 * * * *'
worfklow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update:
name: update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- name: build dependency updater
run: cd dependency_updater && go build
- name: run dependency updater
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cd dependency_updater && ./dependency_updater --repo ../ --github-action true
- name: Load .env file
uses: aarcangeli/load-dotenv@v1.1.0
with:
filenames: 'commit_message.env'
- name: view env
run: echo ${{ env.TITLE }}
- name: create pull request
uses: peter-evans/create-pull-request@v7.0.8
with:
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
title: ${{ env.TITLE }}
commit-message: ${{ env.TITLE }}
body: ${{ env.DESC }}
branch: run-dependency-updater
delete-branch: true