File tree 2 files changed +20
-8
lines changed
2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 21
21
- name : " Checkout"
22
22
uses : actions/checkout@main
23
23
24
+ # This makes it easier to push changes back to the PR
25
+ - name : " Checkout w/ gh"
26
+ run : gh pr checkout ${{ github.event.pull_request.number}}
27
+ env :
28
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
+
24
30
- name : Setup asdf
25
31
uses : asdf-vm/actions/setup@v2
26
32
@@ -40,15 +46,21 @@ jobs:
40
46
env :
41
47
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
48
43
- - name : " Confirm "
49
+ - name : " Commit if Necessary "
44
50
run : |
45
51
if [[ "$(basename "$(git rev-parse --show-toplevel)")" != *'terraform-aws-template'* ]]; then
46
52
echo "Setting core.fileMode to false to avoid false positives in documentation check."
47
53
git config core.fileMode false
48
54
if [[ -n $(git status --porcelain) ]]; then
49
- echo "Documentation is not up to date. Run ./scripts/document.sh"
50
- git status -v
51
- git diff
52
- exit 1
55
+ echo "Documentation is not up to date. Comitting updates"
56
+
57
+ git add README.md
58
+ git config user.name "${GITHUB_USERNAME}"
59
+ git config user.email "${GITHUB_USERNAME}@users.noreply.github.com"
60
+ git commit -m "Running document script"
61
+ git push
53
62
fi
54
63
fi
64
+ env :
65
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
66
+ GITHUB_USERNAME : ${{ github.actor }}
Original file line number Diff line number Diff line change 7
7
Use this URL for the source of the module. See the usage examples below for more details.
8
8
9
9
``` hcl
10
- github.com/pbs/terraform-aws-lambda-cron-module?ref=0.1.8
10
+ github.com/pbs/terraform-aws-lambda-cron-module?ref=x.y.z
11
11
```
12
12
13
13
### Alternative Installation Methods
@@ -22,7 +22,7 @@ Integrate this module like so:
22
22
23
23
``` hcl
24
24
module "lambda-cron" {
25
- source = "github.com/pbs/terraform-aws-lambda-cron-module?ref=0.1.8 "
25
+ source = "github.com/pbs/terraform-aws-lambda-cron-module?ref=x.y.z "
26
26
27
27
# Required Parameters
28
28
handler = "main"
@@ -44,7 +44,7 @@ module "lambda-cron" {
44
44
45
45
If this repo is added as a subtree, then the version of the module should be close to the version shown here:
46
46
47
- ` 0.1.8 `
47
+ ` x.y.z `
48
48
49
49
Note, however that subtrees can be altered as desired within repositories.
50
50
You can’t perform that action at this time.
0 commit comments