Skip to content

Commit

Permalink
ci: add gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-steinfeld committed Nov 1, 2023
1 parent e403a77 commit ccf1b9b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/update-locks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Update Locks
on:
workflow_dispatch:
schedule:
- cron: '12 35 * * 5'
jobs:
update-versions:
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Calculate simple repository name
id: repo-basename
shell: bash
run: |
echo "value=`basename ${{ github.repository }}`" >> $GITHUB_OUTPUT
- name: Get Token from Github App
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.GH_CI_APP_ID }}
private_key: ${{ secrets.GH_CI_APP_PRIVATE_KEY }}
repositories: >-
[${{ toJson(steps.repo-basename.outputs.value) }}]
- name: Update locks if needed
uses: hypertrace/github-actions/raise-lock-pr@main
with:
token: ${{ steps.generate-token.outputs.token }}

0 comments on commit ccf1b9b

Please sign in to comment.