fleet/.github/workflows/ingest-maintained-apps.yml
Jahziel Villasana-Espinoza 4e325bb131
FMAv2 ingestion functionality (#27018)
> For #26083

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Added/updated automated tests
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Ian Littman <iansltx@gmail.com>
2025-03-12 17:51:14 -04:00

61 lines
1.4 KiB
YAML

name: Ingest maintained apps
on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: '0 14 * * *'
- cron: '0 21 * * *'
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 180
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Get current date and time
id: date
run: echo "::set-output name=date::$(date +'%y%m%d%H%M')"
- name: Checkout Fleet
uses: actions/checkout@v4
with:
repository: fleetdm/fleet
fetch-depth: 1
ref: ${{ github.head_ref }}
path: fleet
- name: Setup Go
uses: actions/setup-go@v4.1.0
with:
cache: false
go-version: '^1.23.4'
- name: Ingest maintained apps
run: |
cd fleet
go mod download
go run cmd/maintained-apps/main.go
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
base: main
path: fleet
branch: fma-${{ steps.date.outputs.date }}
delete-branch: true
title: "Update Fleet-maintained apps"
commit-message: |
Update Fleet-maintained apps.
Generated automatically with cmd/maintained-apps.
body: Automated ingestion of latest Fleet-maintained app data.