Skip to content

REMOVEME testing cross-branch updates #15

REMOVEME testing cross-branch updates

REMOVEME testing cross-branch updates #15

Workflow file for this run

name: Auto Commit
on:
push:
branches:
- main
- production-test
- kube-deploy
jobs:
run:
name: Auto Commit
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
ref: kube-deploy

Check failure on line 16 in .github/workflows/autocommit.yml

View workflow run for this annotation

GitHub Actions / Auto Commit

Invalid workflow file

The workflow is not valid. .github/workflows/autocommit.yml (Line: 16, Col: 9): Unexpected value 'ref'
- name: Update publish version
id: update
run: |
VERSION=${GITHUB_SHA::8}
if "$GITHUB_REF" == production-test; then
TYPE=production
else
TYPE=staging
fi
echo ::set-output name=VERSION::${VERSION}
# replace app.yaml with your app file name
sed -i "s|${TYPE}Tag:.*|${TYPE}Tag: $VERSION|g" helm/values.yaml
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
default_author: github_actions
add: '.'
message: "[ci skip] deploy from ${{ steps.update.outputs.VERSION }}"
signoff: true