Fix reset directories #3
Workflow file for this run
This file contains 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: Regen Provider and Module Versions | |
on: [push] | |
jobs: | |
bump-versions: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
actions: write | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: './src/go.mod' | |
- name: Set up tools | |
run: sudo apt install -y findutils | |
- name: Clear existing providers | |
run: find ./providers/ ./modules | grep 'json$' | xargs -I foo bash -c "echo '{}' > foo" | |
- name: Run version bump script | |
working-directory: ./src | |
run: go run ./cmd/bump-versions |