mirror of
https://github.com/lotabout/skim.git
synced 2026-09-10 07:16:23 -04:00
Bumps the gha-prod group with 4 updates: [actions/checkout](https://github.com/actions/checkout), [emibcn/badge-action](https://github.com/emibcn/badge-action), [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) and [actions/deploy-pages](https://github.com/actions/deploy-pages). Updates `actions/checkout` from 6 to 7 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6...v7) Updates `emibcn/badge-action` from 2.0.2 to 2.0.4 - [Release notes](https://github.com/emibcn/badge-action/releases) - [Commits](https://github.com/emibcn/badge-action/compare/v2.0.2...v2.0.4) Updates `actions/upload-pages-artifact` from 3 to 5 - [Release notes](https://github.com/actions/upload-pages-artifact/releases) - [Commits](https://github.com/actions/upload-pages-artifact/compare/v3...v5) Updates `actions/deploy-pages` from 4 to 5 - [Release notes](https://github.com/actions/deploy-pages/releases) - [Commits](https://github.com/actions/deploy-pages/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gha-prod - dependency-name: emibcn/badge-action dependency-version: 2.0.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: gha-prod - dependency-name: actions/upload-pages-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gha-prod - dependency-name: actions/deploy-pages dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gha-prod ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
105 lines
3.3 KiB
YAML
105 lines
3.3 KiB
YAML
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
- edited
|
|
|
|
jobs:
|
|
check-title:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Create git-cliff mock context
|
|
env:
|
|
CONTEXT: >
|
|
[
|
|
{
|
|
"commits": [{
|
|
"id": "foo",
|
|
"message": $msg,
|
|
"links": [],
|
|
"author": {
|
|
"name": "",
|
|
"timestamp": 1
|
|
},
|
|
"committer": {
|
|
"name": "",
|
|
"timestamp": 1
|
|
},
|
|
"merge_commit": false,
|
|
"github": {
|
|
"pr_labels": [],
|
|
"is_first_time": false
|
|
},
|
|
"gitlab": {
|
|
"pr_labels": [],
|
|
"is_first_time": false
|
|
},
|
|
"gitea": {
|
|
"pr_labels": [],
|
|
"is_first_time": false
|
|
},
|
|
"bitbucket": {
|
|
"pr_labels": [],
|
|
"is_first_time": false
|
|
},
|
|
"azure_devops": {
|
|
"pr_labels": [],
|
|
"is_first_time": false
|
|
},
|
|
}],
|
|
"github": { "contributors": [] },
|
|
"gitlab": { "contributors": [] },
|
|
"gitea": { "contributors": [] },
|
|
"bitbucket": { "contributors": [] },
|
|
"azure_devops": { "contributors": [] },
|
|
"submodule_commits": {}
|
|
}
|
|
]
|
|
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
run: |
|
|
jq -nc --arg msg "$PR_TITLE" "$CONTEXT" | tee git-cliff-context.json
|
|
- name: Generate mock changelog entry
|
|
id: git-cliff
|
|
uses: orhun/git-cliff-action@v4
|
|
with:
|
|
args: >
|
|
--from-context git-cliff-context.json -s all
|
|
- name: Check generated entry
|
|
run: |
|
|
echo "Generated:"
|
|
cat "${{ steps.git-cliff.outputs.changelog }}"
|
|
echo "Checking..."
|
|
cat "${{ steps.git-cliff.outputs.changelog }}" | grep -Ev '^(## \[unreleased\]|)$' | grep -q '^.\+$'
|
|
check-generated-files:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
- name: Cache
|
|
uses: Swatinem/rust-cache@v2
|
|
with:
|
|
key: ${{ runner.os }}
|
|
add-job-id-key: "false"
|
|
add-rust-environment-hash-key: "false"
|
|
env-vars: "____"
|
|
cache-on-failure: "true"
|
|
cache-all-crates: "true"
|
|
- name: Generate files
|
|
run: |
|
|
cargo run -- --man > ./man/man1/sk.1
|
|
cargo run -- --shell bash > ./shell/completion.bash
|
|
cargo run -- --shell zsh > ./shell/completion.zsh
|
|
cargo run -- --shell fish > ./shell/completion.fish
|
|
cargo run -- --shell nushell > ./shell/completion.nu
|
|
- name: Check diff
|
|
run: |
|
|
if git diff --exit-code; then
|
|
echo "No changes to generated files found, PR is safe to merge"
|
|
exit 0
|
|
else
|
|
echo "Found changes to generated files, regenerate them locally and push them using 'just generate-files'"
|
|
exit 1
|
|
fi
|