Update go-fluentbit-config schema #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update go-fluentbit-config schema | |
on: | |
push: | |
branches: [main] | |
paths: ["schemas/**"] | |
workflow_dispatch: | |
jobs: | |
update_go_fluentbit_config: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout to go-fluentbit-config repository. | |
uses: actions/checkout@v3 | |
with: | |
repository: calyptia/go-fluentbit-config | |
path: go-fluentbit-config | |
token: ${{ secrets.CI_PAT }} | |
- name: Checkout to core-images-index repository. | |
uses: actions/checkout@v3 | |
with: | |
path: core-images-index | |
- name: Copy schemas from core-images-index to go-fluentbit-config. | |
run: | | |
export OUTPUT_DIR="$PWD/go-fluentbit-config" | |
core-images-index/scripts/copy-schemas-to-go-fluentbit-config.sh | |
shell: bash | |
- name: Create PR on go-fluentbit-config repository. | |
id: cpr | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.CI_PAT }} | |
title: "Update schema to latest" | |
branch: "update-latest-schema" | |
delete-branch: true | |
signoff: true | |
branch-suffix: short-commit-hash | |
commit-message: "Update schema to latest" | |
body: | | |
Update schema after push on index repo. | |
- Created by ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
- Auto-generated by create-pull-request: https://github.com/peter-evans/create-pull-request | |
draft: false | |
path: | | |
go-fluentbit-config/ | |
labels: ci,automerge | |
- name: Check outputs | |
if: ${{ steps.cpr.outputs.pull-request-number }} | |
run: | | |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | |
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |