Skip to content

Auto bump version

Auto bump version #8

Workflow file for this run

name: Auto bump version
on:
workflow_dispatch: {}
schedule:
- cron: 0 0 * * 1
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Should bump?
run: |
new_version=$(./script/bump.sh)
if [[ "$new_version" == "" ]]; then
echo "No new iam-runtime release. Nothing to do. (this is not an error, no worries.)"
fi
echo 'NEW_VERSION<<EOF' >> $GITHUB_ENV
echo "${new_version}" >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Bump version
if: ${{ env.NEW_VERSION != '' }}
env:
VERSION: ${{ env.NEW_VERSION }}
run: |
wget -P /tmp/protoc https://github.com/protocolbuffers/protobuf/releases/download/v26.1/protoc-26.1-linux-x86_64.zip && \
unzip /tmp/protoc/protoc-26.1-linux-x86_64.zip -d /tmp/protoc && \
sudo mv /tmp/protoc/bin/protoc /usr/bin/ && \
sudo mv /tmp/protoc/include/google /usr/include/
make build
- name: Create Pull Request
if: ${{ env.NEW_VERSION != '' }}
uses: peter-evans/create-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commit-message: Generate for v${{ env.NEW_VERSION }}
title: Generate for v${{ env.NEW_VERSION }}
branch: generate-v${{ env.NEW_VERSION }}
reviewers: coffeefreak101
body: |
Generate protobuf code for ${{ env.NEW_VERSION }}.
After merging, trigger the `Publish` workflow action.
This PR is auto-generated by [create-pull-request][1].
[1]: https://github.com/peter-evans/create-pull-request