This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://github.com/actions/checkout) | action | major | `v5.0.1` -> `v6.0.0` | --- ### Release Notes <details> <summary>actions/checkout (actions/checkout)</summary> ### [`v6.0.0`](https://github.com/actions/checkout/releases/tag/v6.0.0) [Compare Source](https://github.com/actions/checkout/compare/v5.0.1...v6.0.0) #### What's Changed - Update README to include Node.js 24 support details and requirements by [@​salmanmkc](https://github.com/salmanmkc) in [#​2248](https://github.com/actions/checkout/pull/2248) - Persist creds to a separate file by [@​ericsciple](https://github.com/ericsciple) in [#​2286](https://github.com/actions/checkout/pull/2286) - v6-beta by [@​ericsciple](https://github.com/ericsciple) in [#​2298](https://github.com/actions/checkout/pull/2298) - update readme/changelog for v6 by [@​ericsciple](https://github.com/ericsciple) in [#​2311](https://github.com/actions/checkout/pull/2311) **Full Changelog**: <https://github.com/actions/checkout/compare/v5.0.0...v6.0.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xOC4wIiwidXBkYXRlZEluVmVyIjoiNDIuMTguMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsidHlwZS9kZXBlbmRlbmNpZXMiXX0=--> Reviewed-on: #9 Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk> Co-committed-by: renovate[bot] <renovate-bot@git.tainton.uk>
59 lines
1.7 KiB
YAML
59 lines
1.7 KiB
YAML
name: CI
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- edited
|
|
- synchronize
|
|
- reopened
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v6.0.0
|
|
|
|
- name: Setup OpenTofu
|
|
uses: opentofu/setup-opentofu@v1
|
|
|
|
- name: OpenTofu fmt
|
|
id: fmt
|
|
run: tofu fmt -check
|
|
continue-on-error: true
|
|
|
|
- name: OpenTofu init
|
|
id: init
|
|
run: tofu init
|
|
|
|
- name: OpenTofu validate
|
|
id: validate
|
|
run: tofu validate -no-color
|
|
|
|
- name: OpenTofu refresh
|
|
id: validate
|
|
run: tofu refresh
|
|
continue-on-error: true
|
|
|
|
- name: OpenTofu plan
|
|
id: plan
|
|
run: tofu plan -no-color
|
|
continue-on-error: true
|
|
|
|
- name: Post comment to PR
|
|
if: gitea.event_name == 'pull_request'
|
|
env:
|
|
PLAN: "tofu\n${{ steps.plan.outputs.stdout }}"
|
|
run: |
|
|
export PR_NUMBER="${{ gitea.event.number }}"
|
|
sed -i "s+[FMT_OUTCOME]+${{ steps.fmt.outcome }}+g" pr_comment.md
|
|
sed -i "s+[INIT_OUTCOME]+${{ steps.init.outcome }}+g" pr_comment.md
|
|
sed -i "s+[VALIDATE_OUTCOME]+${{ steps.validate.outcome }}+g" pr_comment.md
|
|
sed -i "s+[VALIDATE_OUTPUT]+${{ steps.validate.outputs.stdout }}+g" pr_comment.md
|
|
sed -i "s+[PLAN_OUTCOME]+${{ steps.plan.outcome }}+g" pr_comment.md
|
|
curl -X POST \
|
|
-H "Authorization: token ${{ secrets.ACTIONS_TOKEN }}" \
|
|
-H "Content-Type: application/json" \
|
|
-d "{\"body\": \"$(cat pr_comment.md)\"}" \
|
|
"https://${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/issues/$PR_NUMBER/comments"
|