feat: bump azure ARM quickstart template on release

This ensures Azure ARM template users always get the latest and greatest as the Dokku project evolves over time.
This commit is contained in:
Jose Diaz-Gonzalez
2021-02-22 14:38:37 -05:00
parent f918efa8f9
commit 61503b7b17
2 changed files with 77 additions and 0 deletions

26
.github/workflows/bump-azure.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
---
name: bump-azure
# yamllint disable-line rule:truthy
on:
push:
tags:
- '*'
jobs:
bump-azure:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Get version
id: get_version
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
- name: Bump Azure Template
env:
BOT_GITHUB_USERNAME: ${{ secrets.HOMEBREW_GITHUB_USERNAME }}
BOT_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
run: |
VERSION=${{ steps.get_version.outputs.version }}
git config --global user.name 'Dokku Bot'
git config --global user.email no-reply@dokku.com
.github/commands/bump-azure "${VERSION:1}" "$BOT_GITHUB_USERNAME" "$BOT_GITHUB_API_TOKEN"