Skip to content

Commit

Permalink
Add workflow to update a main version (#942)
Browse files Browse the repository at this point in the history
* Add workflow to update a main version

* New line
  • Loading branch information
rentziass authored Oct 4, 2022
1 parent 93ea575 commit 8230315
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/update-main-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Update Main Version
run-name: Move ${{ github.event.inputs.main_version }} to ${{ github.event.inputs.target }}

This comment has been minimized.

Copy link
@Casper0011

Casper0011 Oct 31, 2022

.github/workflows/update-main-version.yml

on:
workflow_dispatch:

This comment has been minimized.

Copy link
@Casper0011

Casper0011 Oct 31, 2022

workflow_dispatch:

inputs:
target:
description: The tag or reference to use
required: true
main_version:
type: choice
description: The main version to update
options:
- v3

jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Git config
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Tag new target
run: git tag -f ${{ github.event.inputs.main_version }} ${{ github.event.inputs.target }}
- name: Push new tag
run: git push origin ${{ github.event.inputs.main_version }} --force

0 comments on commit 8230315

Please sign in to comment.