Commit Graph

410 Commits

Author SHA1 Message Date
Peter Evans
cc3b8eee43
Merge pull request #120 from peter-evans/workflow-perm
Add workflow permissions
2022-08-19 11:25:09 +09:00
Peter Evans
26c5518d73 Add workflow permissions 2022-08-19 11:21:32 +09:00
Peter Evans
b95e16d285
Merge pull request #114 from peter-evans/dependabot/github_actions/chuhlomin/render-template-1.5
Bump chuhlomin/render-template from 1.4 to 1.5
2022-06-03 16:25:31 +09:00
Umang Galaiya
acea7ce9ce Update inputs 2022-06-03 00:42:46 +05:30
Umang Galaiya
1fdf65a50f Update README 2022-06-01 23:43:03 +05:30
Umang Galaiya
63c92e5e90 Improve code, add support for fileEncoding 2022-06-01 23:39:08 +05:30
Umang Galaiya
9d950b6220 Read body from file 2022-06-01 21:19:25 +05:30
dependabot[bot]
c8abc3fd18
Bump chuhlomin/render-template from 1.4 to 1.5
Bumps [chuhlomin/render-template](https://github.com/chuhlomin/render-template) from 1.4 to 1.5.
- [Release notes](https://github.com/chuhlomin/render-template/releases)
- [Commits](https://github.com/chuhlomin/render-template/compare/v1.4...v1.5)

---
updated-dependencies:
- dependency-name: chuhlomin/render-template
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-30 05:21:34 +00:00
Peter Evans
26f0786864
Merge pull request #109 from peter-evans/dependabot/github_actions/peter-evans/slash-command-dispatch-3
Bump peter-evans/slash-command-dispatch from 2 to 3
2022-03-28 14:42:03 +09:00
Peter Evans
ce67f1bede
Merge pull request #108 from peter-evans/dependabot/github_actions/peter-evans/create-or-update-comment-2
Bump peter-evans/create-or-update-comment from 1 to 2
2022-03-28 14:41:52 +09:00
Peter Evans
868b10882d
Merge pull request #107 from peter-evans/dependabot/github_actions/peter-evans/create-pull-request-4
Bump peter-evans/create-pull-request from 3 to 4
2022-03-28 14:41:34 +09:00
dependabot[bot]
380daa7cb2
Bump peter-evans/slash-command-dispatch from 2 to 3
Bumps [peter-evans/slash-command-dispatch](https://github.com/peter-evans/slash-command-dispatch) from 2 to 3.
- [Release notes](https://github.com/peter-evans/slash-command-dispatch/releases)
- [Commits](https://github.com/peter-evans/slash-command-dispatch/compare/v2...v3)

---
updated-dependencies:
- dependency-name: peter-evans/slash-command-dispatch
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-28 05:21:21 +00:00
dependabot[bot]
6d19bf1a70
Bump peter-evans/create-or-update-comment from 1 to 2
Bumps [peter-evans/create-or-update-comment](https://github.com/peter-evans/create-or-update-comment) from 1 to 2.
- [Release notes](https://github.com/peter-evans/create-or-update-comment/releases)
- [Commits](https://github.com/peter-evans/create-or-update-comment/compare/v1...v2)

---
updated-dependencies:
- dependency-name: peter-evans/create-or-update-comment
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-28 05:21:18 +00:00
dependabot[bot]
3eb1ec0c74
Bump peter-evans/create-pull-request from 3 to 4
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3 to 4.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v3...v4)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-28 05:21:18 +00:00
Peter Evans
704bc87a2d Update readme 2022-03-22 16:43:29 +09:00
Peter Evans
fb683dc186
Merge pull request #106 from peter-evans/dependabot/github_actions/chuhlomin/render-template-1.4
Bump chuhlomin/render-template from 1.2 to 1.4
2022-03-22 16:25:04 +09:00
dependabot[bot]
d59bec4fa5
Bump chuhlomin/render-template from 1.2 to 1.4
Bumps [chuhlomin/render-template](https://github.com/chuhlomin/render-template) from 1.2 to 1.4.
- [Release notes](https://github.com/chuhlomin/render-template/releases)
- [Commits](https://github.com/chuhlomin/render-template/compare/v1.2...v1.4)

---
updated-dependencies:
- dependency-name: chuhlomin/render-template
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-22 05:59:44 +00:00
Peter Evans
c9fcb64660
Merge pull request #105 from peter-evans/v2
Update runtime to node 16
2022-03-22 14:59:27 +09:00
Peter Evans
862a968b68 Update runtime to node 16 2022-03-22 14:58:13 +09:00
Peter Evans
63e171afd5
Merge pull request #101 from peter-evans/rm-workflow
Remove workflow
2022-01-28 11:25:07 +09:00
Peter Evans
741ee28404 Remove workflow 2022-01-28 11:23:56 +09:00
Peter Evans
ad0c5a2102
Merge pull request #97 from peter-evans/update-distribution
Update distribution
2021-12-02 10:33:51 +09:00
peter-evans
d7438411f0 Update distribution 2021-12-02 01:33:28 +00:00
Peter Evans
fed340e087
Merge pull request #94 from peter-evans/update-dependencies
Update dependencies
2021-12-02 10:32:31 +09:00
actions-bot
dacf24c705 Update dependencies 2021-12-02 01:25:38 +00:00
Peter Evans
85a7ce6345
Merge pull request #95 from mfn/mfn-bash-fixes
Use double quotes to preserve adjacent spaces correctly
2021-10-27 09:52:22 +09:00
Markus Podar
6484e4d98f
Use double quotes to preserve adjacent spaces correctly
I used this action as part of a workflow to add code formatted blocks.
Using the guide in the readme I, adjacent spaces where not correctly
preserved, i.e. the following
```
      - name: yolo
        id: get-comment-body
        run: |
          echo "\`\`\`" > tmp/comment.md
          echo "+--------------+" >> tmp/comment.md
          echo "|This is a test|" >> tmp/comment.md
          echo "+--------------+" >> tmp/comment.md
          echo "|     yolo     |" >> tmp/comment.md
          echo "+--------------+" >> tmp/comment.md
          echo "\`\`\`" >> tmp/comment.md

          cat tmp/comment.md

          # https://github.com/peter-evans/create-or-update-comment#setting-the-comment-body-from-a-file
          body="$(cat tmp/comment.md)"
          body="${body//'%'/'%25'}"
          body="${body//$'\n'/'%0A'}"
          body="${body//$'\r'/'%0D'}"
          echo ::set-output name=body::$body

      - name: Create or update comment
        uses: peter-evans/create-or-update-comment@v1
        with:
          body: ${{ steps.get-comment-body.outputs.body }}
          issue-number: ${{ github.event.pull_request.number }}
```
produced this
```
+--------------+
|This is a test|
+--------------+
| yolo |
+--------------+
```
Adding the double quotes around `set-output` fixed this:
```
+--------------+
|This is a test|
+--------------+
|     yolo     |
+--------------+
```
Further I added double quotes also around the initial `cat`, because of
this comment https://github.community/t/set-output-truncates-multiline-strings/16852/5
> Here are a few observation. First, it is important to suppress word-splitting upon expansion in bash. This is easiest done by enclosing with double quotes:
2021-10-26 23:09:52 +02:00
Peter Evans
dfd809e21f
Merge pull request #92 from peter-evans/dependabot/npm_and_yarn/ansi-regex-5.0.1
Bump ansi-regex from 5.0.0 to 5.0.1
2021-10-07 11:12:49 +09:00
Peter Evans
e592eff778
Merge pull request #93 from peter-evans/update-distribution
Update distribution
2021-10-07 10:57:22 +09:00
peter-evans
68bbb8a5c2 Update distribution 2021-10-07 01:42:00 +00:00
dependabot[bot]
47f61fa9e1
Bump ansi-regex from 5.0.0 to 5.0.1
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-07 01:41:34 +00:00
Peter Evans
4bed9bafac
Merge pull request #91 from peter-evans/update-dependencies
Update dependencies
2021-10-07 10:41:07 +09:00
actions-bot
4bb6df92d5 Update dependencies 2021-10-07 01:25:56 +00:00
Peter Evans
9f28a7d0f3
Merge pull request #89 from peter-evans/update-dependencies
Update dependencies
2021-09-02 14:04:25 +09:00
Peter Evans
3d88f0fef0 Update package-lock 2021-09-02 14:01:26 +09:00
actions-bot
6510dffaa9 Update dependencies 2021-09-02 01:24:10 +00:00
Peter Evans
aec0e42814
Merge pull request #88 from peter-evans/update-distribution
Update distribution
2021-07-22 11:08:12 +09:00
peter-evans
1bcb47d3f5 Update distribution 2021-07-22 02:07:43 +00:00
Peter Evans
ea336daedc
Merge pull request #87 from peter-evans/update-dependencies
Update dependencies
2021-07-22 11:06:42 +09:00
actions-bot
514911011f Update dependencies 2021-07-22 01:26:33 +00:00
Peter Evans
10d0634e0d
Merge pull request #86 from peter-evans/update-distribution
Update distribution
2021-05-27 13:28:31 +09:00
peter-evans
085dfa0630 Update distribution 2021-05-27 04:28:06 +00:00
Peter Evans
87510f47bf
Merge pull request #83 from peter-evans/update-dependencies
Update dependencies
2021-05-27 13:27:11 +09:00
Peter Evans
6cfa7f64ae Update octokit rest methods 2021-05-27 13:25:22 +09:00
actions-bot
152106b573 Update dependencies 2021-05-27 01:32:54 +00:00
Peter Evans
a481189ebf Update readme 2021-05-22 09:13:55 +09:00
Peter Evans
4ef0b40d9e
Merge pull request #82 from peter-evans/update-distribution
Update distribution
2021-05-13 11:27:19 +09:00
peter-evans
54141f84ca Update distribution 2021-05-13 02:26:56 +00:00
Peter Evans
f45a0a4d45
Merge pull request #78 from peter-evans/update-dependencies
Update dependencies
2021-05-13 11:25:59 +09:00
actions-bot
02f3870897 Update dependencies 2021-05-13 02:19:09 +00:00