Skip to content

Commit

Permalink
feat(asdf): setup automatic tool-versions updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gildesmarais committed May 7, 2024
1 parent e278757 commit 92f9fd7
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/tool-versions-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tool Versions Update
on:
workflow_dispatch: ~
push:
schedule:
- cron: '0 0 * * *'

permissions: read-all

jobs:
tool-versions-update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install asdf
uses: asdf-vm/actions/setup@v3

# Configure asdf plugins
# - run: asdf plugin-add aws-vault https://github.com/karancode/asdf-aws-vault.git
# - run: asdf plugin-add deno https://github.com/asdf-community/asdf-deno.git
# - run: asdf plugin-add golang https://github.com/asdf-community/asdf-golang.git
# - run: asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git
# - run: asdf plugin-add python https://github.com/asdf-community/asdf-python.git
# - run: asdf plugin-add kubectl https://github.com/asdf-community/asdf-kubectl.git
# - run: asdf plugin-add ruby https://github.com/asdf-vm/asdf-ruby.git
# - run: asdf plugin-add rust https://github.com/asdf-community/asdf-rust.git

- name: Update tooling
uses: ericcornelissen/tool-versions-update-action/commit@v1
id: tooling
with:
max: 2

- name: Log tooling changes
if: steps.tooling.outputs.did-update == 'true'
run: git diff .tool-versions
1 change: 1 addition & 0 deletions .tool-versions

0 comments on commit 92f9fd7

Please sign in to comment.