Skip to content

Commit

Permalink
tag submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
ktong committed Feb 4, 2024
1 parent 5abf7d5 commit 85543cc
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release
on:
release:
types: [published]

permissions:
contents: write

jobs:
tag:
strategy:
matrix:
module: [ 'provider/file', 'provider/pflag' ]
name: Tag submodules
runs-on: ubuntu-latest
steps:
- name: Create tag
uses: actions/github-script@v7
with:
script: |
ref = "refs/tags/${{ matrix.module }}/" + context.ref.split('/')[2]
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: ref,
sha: context.sha
})

0 comments on commit 85543cc

Please sign in to comment.