-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathgen-latest-snapshot-mce-28.yaml
More file actions
51 lines (45 loc) · 1.66 KB
/
gen-latest-snapshot-mce-28.yaml
File metadata and controls
51 lines (45 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
42
43
44
45
46
47
48
49
50
51
name: Gen Latest Dev Snapshot - MCE 2.8
on:
workflow_dispatch: {}
schedule:
- cron: '0 7 * * *' # 3:00AM EST every day (UTC-4)
- cron: '0 19 * * *' # 3:00PM EST every day (UTC-4)
jobs:
snapshot:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
branch: ['backplane-2.8']
include:
- branch: backplane-2.8
release-plan: "dev-publish-mce-28"
steps:
- name: Checkout tooling branch
uses: actions/checkout@v3
with:
ref: tooling
# Run the snapshot collector script and create a PR with the latest snapshot in the correct branch
- name: Run snapshot collection and file handling
env:
SA_TOKEN: ${{ secrets.KONFLUX_SERVICE_ACCOUNT_TOKEN }}
run: |
chmod +x snapshot-collector.sh
./snapshot-collector.sh ${{ matrix.release-plan }} "$SA_TOKEN"
- name: Generate GitHub token for workflow actions
id: gen-workflow-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.WORKFLOW_BOT_APP_ID }}
private-key: ${{ secrets.WORKFLOW_BOT_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
# Create Pull Request
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
branch: "update-snapshot-${{ matrix.branch }}"
base: "${{ matrix.branch }}"
delete-branch: true
title: "Gen Latest Snapshot [${{ matrix.branch }}]"
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
token: ${{ steps.gen-workflow-token.outputs.token }}