diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..23e074e4 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 + })