Skip to content

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

Dependency Updater: Github Action Workflow for Scheduled Updater Runs

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

name: Update Dockerfile Dependencies
on:
# schedule:
# - cron: '0 12 * * * *'
pull_request:
permissions:
contents: write
pull_requests: write

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

View workflow run for this annotation

GitHub Actions / Update Dockerfile Dependencies

Invalid workflow file

The workflow is not valid. .github/workflows/update-dependencies.yml (Line: 9, Col: 3): Unexpected value 'pull_requests'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
update:
name: update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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 ../ --commit true
- name: Load .env file
uses: aarcangeli/[email protected]
with:
filenames: 'commit_message.env'
- name: view env
run: echo ${{ env.TITLE }}
- name: create pull request
uses: peter-evans/[email protected]
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
base: main