Skip to content

Sync from upstream

Sync from upstream #26

name: Sync from upstream
on:
push:
branches:
- 'main' # Run at every sync
schedule:
- cron: '0 8 * * 5' # At 07:00 on every Friday
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
sync-reports-server-charts-repository:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ steps.generate_token.outputs.token }}
- run: |
# Fetch tags from upstream repo
git fetch https://github.com/kyverno/reports-server --tags
# Remove release candidates local tags
git tag -d $(git tag -l | grep -E "\-rc|\-beta|\-dev")
git push --tags