diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml
index 4852bd59..180dc78f 100644
--- a/.github/workflows/versioning.yml
+++ b/.github/workflows/versioning.yml
@@ -1,13 +1,37 @@
-name: Tag latest
+name: Update latest tag
on:
- push:
- branches:
- - main
+ release:
+ types: [published]
jobs:
- actions-tagger:
+ update-latest-tag:
runs-on: ubuntu-latest
steps:
- - name: Run latest-tag
- uses: EndBug/latest-tag@latest
+ - name: Checkout code
+ uses: actions/checkout@v3
+
+ - name: Setup git user
+ run: |
+ git config user.name "github-actions"
+ git config user.email "github-actions@github.com"
+
+ - name: Fetch all tags
+ run: git fetch --tags
+
+ - name: Move latest tag to current commit
+ run: |
+ git tag -d latest || true
+ git tag latest
+ git push origin :refs/tags/latest
+ git push origin --tags
+
+ - name: Create a GitHub release for the latest tag
+ uses: actions/create-release@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ tag_name: latest
+ release_name: Release ${{ github.ref }}
+ draft: false
+ prerelease: false
diff --git a/README.md b/README.md
index f67fa548..d9d64925 100644
--- a/README.md
+++ b/README.md
@@ -32,9 +32,12 @@ features of this action are:
`summarize_release_notes` prompts to focus on specific aspects of the review
process or even change the review objective.
-# Professional Version of CodeRabbit
-The professional version of our openai-pr-reviewer project is now live at [coderabbit.ai](http://Coderabbit.ai). Building upon our open-source foundation, CodeRabbit offers improved features, dedicated support, and our ongoing commitment to superior code reviews.
+# Professional Version of CodeRabbit
+The professional version of our openai-pr-reviewer project is now live at
+[coderabbit.ai](http://Coderabbit.ai). Building upon our open-source foundation,
+CodeRabbit offers improved features, dedicated support, and our ongoing
+commitment to superior code reviews.
## Usage
@@ -64,7 +67,7 @@ jobs:
review:
runs-on: ubuntu-latest
steps:
- - uses: fluxninja/openai-pr-reviewer@latest
+ - uses: coderabbitai/openai-pr-reviewer@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
@@ -226,7 +229,7 @@ jobs:
review:
runs-on: ubuntu-latest
steps:
- - uses: fluxninja/openai-pr-reviewer@latest
+ - uses: coderabbitai/openai-pr-reviewer@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}