Bump Versions #17052
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: Bump Versions | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
schedule: | |
- cron: '0 * * * *' # hourly | |
workflow_dispatch: | |
jobs: | |
bump-versions: | |
name: Bump Package Versions | |
runs-on: ubuntu-latest | |
container: | |
image: homebrew/brew | |
options: --user root | |
timeout-minutes: 10 | |
outputs: | |
bump-viam: ${{ steps.viam.outputs.bump }} | |
bump-viam-server: ${{ steps.viam-server.outputs.bump }} | |
env: | |
HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.GIT_ACCESS_TOKEN }} | |
- name: Setup homebrew and git config | |
run: | | |
mkdir /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/viamrobotics | |
ln -s $(pwd) /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/viamrobotics/homebrew-brews | |
git config --global --add safe.directory '*' | |
git config --global url."https://github.com/".insteadOf [email protected]: | |
brew developer on | |
- name: Bump viam-server | |
id: viam-server | |
run: | | |
echo bump=$(./needs-bump.sh viam-server) >> "$GITHUB_OUTPUT" | |
./bump-version.sh viam-server | |
- name: Bump cartographer-module | |
run: ./bump-version.sh cartographer-module | |
- name: Bump rplidar-module | |
run: ./bump-version.sh rplidar-module | |
- name: Bump orb-slam3-module | |
run: ./bump-version.sh orb-slam3-module | |
- name: Bump canon | |
run: ./bump-version.sh canon | |
- name: Bump viam-dialdbg | |
run: ./bump-version.sh viam-dialdbg | |
- name: Bump viam-cpp-sdk | |
run: ./bump-version.sh viam-cpp-sdk | |
- name: Bump viam | |
id: viam | |
run: | | |
echo bump=$(./needs-bump.sh viam) >> "$GITHUB_OUTPUT" | |
./bump-version.sh viam | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Auto-update of package versions | |
bottle-viam: | |
needs: bump-versions | |
concurrency: | |
group: ${{ github.ref }}-bottle | |
if: needs.bump-versions.outputs.bump-viam == 'true' | |
uses: ./.github/workflows/bottle.yml | |
with: | |
formula: viam | |
secrets: | |
GIT_ACCESS_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }} | |
bottle-viam-server: | |
needs: bump-versions | |
concurrency: | |
group: ${{ github.ref }}-bottle | |
if: needs.bump-versions.outputs.bump-viam-server == 'true' | |
uses: ./.github/workflows/bottle.yml | |
with: | |
formula: viam-server | |
secrets: | |
GIT_ACCESS_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }} |