Skip to content

Commit b3c7bfc

Browse files
committed
Updating github-config
1 parent ac5bf1f commit b3c7bfc

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Tag Documentation Release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
workflow_dispatch: {}
8+
9+
jobs:
10+
tag:
11+
name: Tag
12+
runs-on: ubuntu-latest
13+
steps:
14+
15+
- name: Parse Event
16+
id: event
17+
run: |
18+
echo "::set-output name=tag::$(jq -r '.release.tag_name' "${GITHUB_EVENT_PATH}" | sed s/^v//)"
19+
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Get Release Tag
26+
id: tag
27+
uses: paketo-buildpacks/github-config/actions/tag/tag-docs-submodule@main
28+
with:
29+
version: ${{ steps.event.outputs.tag }}
30+
31+
- name: Create Docs Tag
32+
run: |
33+
git tag ${{ steps.tag.outputs.tag }}
34+
35+
- name: Push
36+
uses: paketo-buildpacks/github-config/actions/pull-request/push-branch@main
37+
with:
38+
branch: main

0 commit comments

Comments
 (0)