generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (58 loc) · 1.73 KB
/
readme.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: 'Create README.md file'
permissions: write-all
on:
push:
branches:
- master
paths-ignore:
- '**/*README.md'
workflow_dispatch:
jobs:
readme-create:
name: 'readme-create'
runs-on: ubuntu-latest
steps:
- name: Updating GitHub Token
env:
GITHUB_TOKEN: ${{ secrets.GITHUB}}
run: echo "GH_TOKEN=${GITHUB_TOKEN}" >> $GITHUB_ENV
- name: checkout
uses: actions/checkout@master
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
token: ${{ env.GH_TOKEN }}
- name: 'Set up Python 3.7'
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: 'create readme'
uses: 'clouddrove/github-actions@9.0.3'
with:
actions_subcommand: 'readme'
github_token: '${{ secrets.GITHUB }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB }}
- name: 'pre-commit check errors'
uses: pre-commit/action@v3.0.1
continue-on-error: true
- name: 'pre-commit fix erros'
uses: pre-commit/action@v3.0.1
continue-on-error: true
- name: 'push readme'
uses: 'clouddrove/github-actions@9.0.3'
continue-on-error: true
with:
actions_subcommand: 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: 'Slack Notification'
# uses: clouddrove/action-slack@v2
# with:
# status: ${{ job.status }}
# fields: repo,author
# author_name: 'CloudDrove'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
# if: always()