mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-30 19:41:46 +01:00
4bd79a27b7
* Remove commented out test
* Update VERSION
* Don't run the automerge job on forks
* Revert "Update VERSION"
This reverts commit dc37f20133
.
* Change automerge condition
* Change automerge condition a bit more
* Try scrolling
* Scroll by more
* Stop GitHub complaining about no jobs ran in a workflow
* Search for a different event name
* Try a different operator
* Don't default branch push jobs on forks
* Move clicks around
Co-authored-by: PostHog Bot <hey@posthog.com>
31 lines
931 B
YAML
31 lines
931 B
YAML
name: Version Update
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*.**'
|
|
|
|
jobs:
|
|
update-version:
|
|
name: Update VERSION
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v2
|
|
with:
|
|
ref: master
|
|
fetch-depth: 0
|
|
|
|
- name: Edit version.py
|
|
if: github.repository == 'PostHog/posthog'
|
|
run: echo "VERSION = \"$(git describe --tags `git rev-list --tags --max-count=1`)\"" > posthog/version.py
|
|
|
|
- name: Commit update
|
|
if: github.repository == 'PostHog/posthog'
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
with:
|
|
commit_message: 'Update VERSION'
|
|
commit_user_name: PostHog Bot
|
|
commit_user_email: hey@posthog.com
|
|
commit_author: PostHog Bot <hey@posthog.com>
|