-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.66 KB
/
Copy pathdistros.yml
File metadata and controls
41 lines (41 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2021
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
name: Scheduled Latest Vagrant Boxes verification
# yamllint disable-line rule:truthy
on:
schedule:
- cron: "0 0 5 * *"
workflow_dispatch:
permissions: read-all
jobs:
check-versions:
name: Check latest versions of Vagrant boxes
permissions:
contents: write # for technote-space/create-pr-action to push code
pull-requests: write # for technote-space/create-pr-action to create a PR
runs-on: vm-self-hosted
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 7.0.1
with:
persist-credentials: false
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # 6.1.0
with:
path: ~/.vagrant.d/boxes
key: ${{ runner.os }}-vagrant-${{ hashFiles('distros_supported.yml') }}
restore-keys: |
${{ runner.os }}-vagrant-
- uses: technote-space/create-pr-action@91114507cf92349bec0a9a501c2edf1635427bc5 # 2.1.4
with:
EXECUTE_COMMANDS: |
./ci/update_distros.sh
COMMIT_MESSAGE: "Upgrade distro list versions"
COMMIT_NAME: "electrocucaracha bot"
PR_BRANCH_NAME: "versions-update-${PR_ID}"
PR_TITLE: "chore: update distro versions"