mirror of
https://github.com/clap-rs/clap
synced 2024-12-12 13:52:34 +00:00
chore(ci): Experiment with template update
This commit is contained in:
parent
61f5ee514f
commit
19e103d79e
1 changed files with 34 additions and 0 deletions
34
.github/workflows/template.yml
vendored
Normal file
34
.github/workflows/template.yml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: Template Update
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '1 1 1 * *'
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
CARGO_TERM_COLOR: always
|
||||
CLICOLOR: 1
|
||||
TEMPLATE_URL: "https://github.com/epage/_rust.git"
|
||||
TEMPLATE_BRANCH: "https://github.com/epage/_rust.git"
|
||||
|
||||
concurrency:
|
||||
group: "${{ github.workflow }}-${{ github.ref }}"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
update:
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Fetch template
|
||||
run: "git remote add template ${{ env.TEMPLATE_URL }} && git fetch template ${{ env.TEMPLATE_BRANCH }}"
|
||||
- name: Merge template
|
||||
run: "git checkout -b template-update && git merge template/${{ env.TEMPLATE_BRANCH }} -m 'chore: Update from template'"
|
||||
- name: Push
|
||||
run: "gh pr create -H template-update"
|
||||
permissions:
|
||||
security-events: write # to create PR
|
Loading…
Reference in a new issue