Skip to content

Commit 52f18c3

Browse files
committed
fix: consolidated workflows
1 parent 838b677 commit 52f18c3

File tree

3 files changed

+27
-32
lines changed

3 files changed

+27
-32
lines changed

.github/workflows/pr-labeler.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/pre-release.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/example.yml renamed to .github/workflows/pull_request.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@ name: Generate terraform docs
22
on:
33
- pull_request
44
jobs:
5-
docs:
5+
6+
label:
7+
if: github.event.action == 'opened'
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: TimonVS/pr-labeler-action@v3
11+
with:
12+
configuration-path: .github/pr-labeler.yml
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
16+
build:
617
runs-on: ubuntu-latest
718
steps:
819
- uses: actions/checkout@v2
@@ -53,3 +64,18 @@ jobs:
5364
tf_docs_output_file: README.md
5465
tf_docs_git_push: 'true'
5566
tf_docs_git_commit_message: 'terraform-docs: automated action'
67+
68+
release:
69+
needs: build
70+
if: startsWith(github.event.pull_request.head.ref, 'release')
71+
runs-on: ubuntu-latest
72+
steps:
73+
- uses: actions/checkout@v2
74+
with:
75+
ref: ${{ github.event.pull_request.head.ref }}
76+
fetch-depth: 0
77+
78+
- name: Generate files for release
79+
uses: ./
80+
with:
81+
entrypoint: "/pre-release.sh"

0 commit comments

Comments
 (0)