|
32 | 32 | -name:auto-release |
33 | 33 | run:Rscript -e 'source("renv/activate.R"); renv::restore(); renv::install("."); precommit:::auto_release()' |
34 | 34 | -name:Create Pull Request |
| 35 | +id:cpr |
35 | 36 | uses:peter-evans/create-pull-request@v7.0.7 |
36 | 37 | with: |
37 | 38 | token:${{ secrets.PRECOMMIT_HOOK_DEPENDENCY_UPDATE }} |
|
44 | 45 | This PR updates the hook dependencies in `renv.lock`, auto-generated by [create-pull-request][1]. Close and re-open this to trigger `on: pull_request` events to circumvent [limitation of GitHub actions](https://github.com/peter-evans/create-pull-request/blob/master/docs/concepts-guidelines.md#push-pull-request-branches-to-a-fork). |
45 | 46 |
|
46 | 47 | [1]: https://github.com/peter-evans/create-pull-request |
47 | | -
|
| 48 | + -name:Checkout PR head SHA |
| 49 | +if:steps.cpr.outputs['pull-request-operation'] != 'none' |
| 50 | +uses:actions/checkout@v4 |
| 51 | +with: |
| 52 | +ref:${{ steps.cpr.outputs['pull-request-head-sha'] }} |
| 53 | +fetch-depth:0# good practice if you need history |
| 54 | + |
48 | 55 | -name:Push latest tag |
49 | 56 | run:| |
50 | 57 | Rscript -e "install.packages('desc')" |
|