chore: update cluster autoscaler permissions (#375) #83
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: Release | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: "0" | |
token: ${{ secrets.GIT_BOT_TOKEN }} | |
- uses: fusion-engineering/setup-git-credentials@v2 | |
with: | |
credentials: ${{ format('https://x-access-token:{0}@github.com/', secrets.GIT_BOT_TOKEN) }} | |
- id: prep | |
name: next release version | |
uses: jenkins-x-plugins/[email protected] | |
- env: | |
VERSION: ${{ steps.prep.outputs.version }} | |
run: | | |
echo "tagging version $VERSION" | |
git config --global user.email "[email protected]" | |
git config --global user.name "jstrachan" | |
git tag -fa v$VERSION -m "Release version $VERSION" | |
git push --force origin v$VERSION | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GIT_BOT_TOKEN }} | |
with: | |
tag_name: v${{ steps.prep.outputs.version }} | |
release_name: ${{ steps.prep.outputs.version }} | |
body: | | |
New release | |
draft: false | |
prerelease: false | |
- env: | |
GITHUB_TOKEN: ${{ secrets.GIT_BOT_TOKEN }} | |
VERSION: ${{ steps.prep.outputs.version}} | |
XDG_CONFIG_HOME: /github/home/.config | |
name: updatebot | |
uses: docker://ghcr.io/jenkins-x/jx-updatebot:0.1.3 | |
with: | |
args: pr --git-credentials | |
"on": | |
push: | |
branches: | |
- main | |
- master |