Dependency Updater: Github Action Workflow for Scheduled Updater Runs #33
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Dockerfile Dependencies | ||
| on: | ||
| # schedule: | ||
| # - cron: '0 12 * * * *' | ||
| pull_request: | ||
| permissions: | ||
| contents: write | ||
| pull_requests: write | ||
| 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 | ||