Skip to content

cmd/konflux: fix gh pr list #337

cmd/konflux: fix gh pr list

cmd/konflux: fix gh pr list #337

---
name: Generate konflux configurations
on:
push:
branches:
- 'main'
schedule:
- cron: "0 6 * * *" # Daily at 06:00.
workflow_dispatch: # Manual workflow trigger
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update-projects:
if: github.repository_owner == 'openshift-pipelines' # do not run this elsewhere
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout the repository
uses: actions/checkout@v4
# - name: Synchronize labels
# run: |
# pushd project
# gh label clone openshift-pipelines/hack
# popd
# env:
# GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }}
# GITHUB_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }}
- uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Generate configurations and pull-requests
run: |
echo "Let's go"
# git config -l | grep 'http\..*\.extraheader' | cut -d= -f1 | xargs -L1 git config --unset-all
gh auth status
gh auth setup-git
go run ./cmd/konflux/ config/konflux/*
env:
GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }}
GITHUB_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }}