Skip to content

Commit

Permalink
revert versioning.yml (coderabbitai#367)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by openai -->
### Summary by OpenAI

**Revert**: The changes made to the `versioning.yml` file in the
`.github/workflows` directory have been reverted.

> 🔄 A circle turns, a cycle complete,
> 
> Back to old paths, our steps retreat.
> 
> In code's vast sea, a change reversed,
> 
> To prior states, our course traversed. 🚀
<!-- end of auto-generated comment: release notes by openai -->
  • Loading branch information
harjotgill authored Jul 15, 2023
1 parent f640f42 commit 1caf00f
Showing 1 changed file with 6 additions and 30 deletions.
36 changes: 6 additions & 30 deletions .github/workflows/versioning.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,13 @@
name: Update latest tag
name: Tag latest

on:
release:
types: [published]
types: [published, edited]

jobs:
update-latest-tag:
runs-on: ubuntu-latest
actions-tagger:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup git user
run: |
git config user.name "github-actions"
git config user.email "[email protected]"
- 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 }}
- uses: Actions-R-Us/actions-tagger@latest
with:
tag_name: latest
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
publish_latest_tag: true

0 comments on commit 1caf00f

Please sign in to comment.