@@ -17,34 +17,38 @@ jobs:
1717 with :
1818 python-version : ' 3.x'
1919
20- - name : ' Install test dependencies.'
21- run : pip install yamllint
22-
23- - name : Run yamllint.
24- run : yamllint ./README.yaml
25-
26- - name : clone Genie repo
27- run : |
28- export GITHUB_ACCESS_TOKEN=${{ secrets.GITHUB }}
29- cd .. && cd .. && cd ..
30- git clone https://${{ secrets.GITHUB }}@github.com/clouddrove/genie.git
31- cd /home/runner/work/terraform-aws-security-group/terraform-aws-security-group
32- make packages/install/gomplate
33- make readme
34- - name : push to repo back
35- run : |
36- git config --global user.email "anmol@clouddrove.com"
37- git config --global user.name "Anmol nagpal"
38- git add . && git commit -m "upload"
39- git push origin master
20+ - name : ' create readme'
21+ uses : ' clouddrove/github-actions@v4.0'
22+ with :
23+ actions_subcommand : ' readme'
24+ github_token : ' ${{ secrets.GITHUB}}'
25+ env :
26+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN}}
27+
28+
29+ - name : pre-commit check errors
30+ uses : pre-commit/action@v2.0.0
31+ continue-on-error : true
32+
33+ - name : pre-commit fix erros
34+ uses : pre-commit/action@v2.0.0
35+ continue-on-error : true
36+
37+ - name : ' push readme'
38+ uses : ' clouddrove/github-actions@v4.0'
39+ continue-on-error : true
40+ with :
41+ actions_subcommand : ' push'
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN}}
4044
4145 - name : ' Slack Notification'
4246 uses : clouddrove/action-slack@v2
4347 with :
4448 status : ${{ job.status }}
4549 fields : repo,author
46- author_name : ' Clouddrove '
50+ author_name : ' CloudDrove '
4751 env :
4852 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # required
4953 SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
50- if : always()
54+ if : always()
0 commit comments