Skip to content

Commit

Permalink
Merge pull request #32 from FroggyFlox/31_rockstor-jslibs_releases_re…
Browse files Browse the repository at this point in the history
…main_disconnected_from_rockstor-core

Automate release creation post rockstor-core release #31
  • Loading branch information
phillxnet authored Jul 8, 2023
2 parents 58a293a + 332b934 commit 5c186fb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Exclude git config files from the generated tarball
.git* export-ignore

# Exclude .github files
.github/** export-ignore
33 changes: 33 additions & 0 deletions .github/workflows/update_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Create release
on:
workflow_dispatch:
inputs:
version:
required: true
description: version without release
type: string
target_branch:
required: true
description: branch to target when creating the release
type: string
jobs:
create-release:
name: Create a release based on version received
runs-on: ubuntu-latest
permissions:
contents: write
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout jslibs
id: checkout-jslibs
uses: actions/checkout@v3
with:
ref: ${{ inputs.target_branch }}
- name: Create release on rockstor/rockstor-jslibs
id: create-jslibs-release
run: |
gh release create ${{ inputs.version }} \
--notes "Tagging for next rockstor-core release." \
--title "${{ inputs.version }}" \
--target ${{ inputs.target_branch }}

0 comments on commit 5c186fb

Please sign in to comment.