Skip to content

Commit

Permalink
tag submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
ktong committed Feb 3, 2024
1 parent 5abf7d5 commit 799f2bc
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:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

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: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ matrix.module }}/${{ github.event.inputs }}',
sha: context.sha
})

0 comments on commit 799f2bc

Please sign in to comment.