diff --git a/.github/workflows/auto-merge-upstream-main.yaml b/.github/workflows/auto-merge-upstream-main.yaml deleted file mode 100644 index 2b78b695..00000000 --- a/.github/workflows/auto-merge-upstream-main.yaml +++ /dev/null @@ -1,29 +0,0 @@ -# Generated for Konflux Application openshift-pipelines-core-main by openshift-pipelines/hack. DO NOT EDIT -name: auto-merge-upstream-main - -on: - workflow_dispatch: {} - schedule: - - cron: "*/30 * * * *" # At every 30 minutes - -jobs: - auto-approve: - runs-on: ubuntu-latest - if: github.repository_owner == 'openshift-pipelines' # do not run this elsewhere - permissions: - pull-requests: write - steps: - - name: Checkout the current repo - uses: actions/checkout@v4 - - name: auto-merge-upstream-main - run: | - gh auth status - git config user.name openshift-pipelines-bot - git config user.email pipelines-extcomm@redhat.com - # Approve and merge pull-request with no reviews - for p in $(gh pr list --search "head:actions/update/sources-main" --json "number" | jq ".[].number"); do - gh pr merge --rebase --delete-branch --auto $p - done - env: - GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }} - diff --git a/.github/workflows/auto-merge-upstream-next.yaml b/.github/workflows/auto-merge-upstream-next.yaml deleted file mode 100644 index 62b3d363..00000000 --- a/.github/workflows/auto-merge-upstream-next.yaml +++ /dev/null @@ -1,29 +0,0 @@ -# Generated for Konflux Application openshift-pipelines-core-next by openshift-pipelines/hack. DO NOT EDIT -name: auto-merge-upstream-next - -on: - workflow_dispatch: {} - schedule: - - cron: "*/30 * * * *" # At every 30 minutes - -jobs: - auto-approve: - runs-on: ubuntu-latest - if: github.repository_owner == 'openshift-pipelines' # do not run this elsewhere - permissions: - pull-requests: write - steps: - - name: Checkout the current repo - uses: actions/checkout@v4 - - name: auto-merge-upstream-next - run: | - gh auth status - git config user.name openshift-pipelines-bot - git config user.email pipelines-extcomm@redhat.com - # Approve and merge pull-request with no reviews - for p in $(gh pr list --search "head:actions/update/sources-next" --json "number" | jq ".[].number"); do - gh pr merge --rebase --delete-branch --auto $p - done - env: - GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }} - diff --git a/.github/workflows/auto-merge-upstream-release-v1.16.x.yaml b/.github/workflows/auto-merge-upstream-release-v1.16.x.yaml deleted file mode 100644 index fe1f5743..00000000 --- a/.github/workflows/auto-merge-upstream-release-v1.16.x.yaml +++ /dev/null @@ -1,29 +0,0 @@ -# Generated for Konflux Application openshift-pipelines-core-1.16 by openshift-pipelines/hack. DO NOT EDIT -name: auto-merge-upstream-release-v1.16.x - -on: - workflow_dispatch: {} - schedule: - - cron: "*/30 * * * *" # At every 30 minutes - -jobs: - auto-approve: - runs-on: ubuntu-latest - if: github.repository_owner == 'openshift-pipelines' # do not run this elsewhere - permissions: - pull-requests: write - steps: - - name: Checkout the current repo - uses: actions/checkout@v4 - - name: auto-merge-upstream-release-v1.16.x - run: | - gh auth status - git config user.name openshift-pipelines-bot - git config user.email pipelines-extcomm@redhat.com - # Approve and merge pull-request with no reviews - for p in $(gh pr list --search "head:actions/update/sources-release-v1.16.x" --json "number" | jq ".[].number"); do - gh pr merge --rebase --delete-branch --auto $p - done - env: - GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }} - diff --git a/.github/workflows/auto-merge-upstream-release-v1.17.x.yaml b/.github/workflows/auto-merge-upstream-release-v1.17.x.yaml deleted file mode 100644 index 80eb9979..00000000 --- a/.github/workflows/auto-merge-upstream-release-v1.17.x.yaml +++ /dev/null @@ -1,29 +0,0 @@ -# Generated for Konflux Application openshift-pipelines-core-1.17 by openshift-pipelines/hack. DO NOT EDIT -name: auto-merge-upstream-release-v1.17.x - -on: - workflow_dispatch: {} - schedule: - - cron: "*/30 * * * *" # At every 30 minutes - -jobs: - auto-approve: - runs-on: ubuntu-latest - if: github.repository_owner == 'openshift-pipelines' # do not run this elsewhere - permissions: - pull-requests: write - steps: - - name: Checkout the current repo - uses: actions/checkout@v4 - - name: auto-merge-upstream-release-v1.17.x - run: | - gh auth status - git config user.name openshift-pipelines-bot - git config user.email pipelines-extcomm@redhat.com - # Approve and merge pull-request with no reviews - for p in $(gh pr list --search "head:actions/update/sources-release-v1.17.x" --json "number" | jq ".[].number"); do - gh pr merge --rebase --delete-branch --auto $p - done - env: - GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }} - diff --git a/.github/workflows/auto-merge-upstream-release-v1.20.x.yaml b/.github/workflows/auto-merge-upstream-release-v1.20.x.yaml deleted file mode 100644 index 4ee35218..00000000 --- a/.github/workflows/auto-merge-upstream-release-v1.20.x.yaml +++ /dev/null @@ -1,29 +0,0 @@ -# Generated for Konflux Application openshift-pipelines-core-1.20 by openshift-pipelines/hack. DO NOT EDIT -name: auto-merge-upstream-release-v1.20.x - -on: - workflow_dispatch: {} - #schedule: - # - cron: "*/30 * * * *" # At every 30 minutes - -jobs: - auto-approve: - runs-on: ubuntu-latest - if: github.repository_owner == 'openshift-pipelines' # do not run this elsewhere - permissions: - pull-requests: write - steps: - - name: Checkout the current repo - uses: actions/checkout@v4 - - name: auto-merge-upstream-release-v1.20.x - run: | - gh auth status - git config user.name openshift-pipelines-bot - git config user.email pipelines-extcomm@redhat.com - # Approve and merge pull-request with no reviews - for p in $(gh pr list --search "head:actions/update/sources-release-v1.20.x" --json "number" | jq ".[].number"); do - gh pr merge --rebase --delete-branch --auto $p - done - env: - GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }} - diff --git a/.github/workflows/update-sources-main.yaml b/.github/workflows/update-sources-main.yaml deleted file mode 100644 index df47e36f..00000000 --- a/.github/workflows/update-sources-main.yaml +++ /dev/null @@ -1,75 +0,0 @@ -# Generated for Konflux Application openshift-pipelines-core-main by openshift-pipelines/hack. DO NOT EDIT -name: update-sources-main - -on: - workflow_dispatch: {} - schedule: - - cron: "0 1 * * *" # At 1AM everyday - -jobs: - - update-sources: - runs-on: ubuntu-latest - if: github.repository_owner == 'openshift-pipelines' # do not run this elsewhere - permissions: - contents: write - pull-requests: write - steps: - - name: Checkout the current repo - uses: actions/checkout@v4 - with: - ref: main - - - name: Clone tektoncd-catalog/git-clone - run: | - rm -fR upstream - git clone https://github.com/tektoncd-catalog/git-clone upstream - pushd upstream - git checkout -B main origin/main - popd - - - - name: Commit new changes - run: | - git config user.name openshift-pipelines-bot - git config user.email pipelines-extcomm@redhat.com - git checkout -b actions/update/sources-main - touch head - pushd upstream - OLD_COMMIT=$(cat ../head) - NEW_COMMIT=$(git rev-parse HEAD) - echo Previous commit: ${OLD_COMMIT} - git show --stat ${OLD_COMMIT} - echo New commit: ${NEW_COMMIT} - git show --stat ${NEW_COMMIT} - git diff --stat ${NEW_COMMIT}..${OLD_COMMIT} > /tmp/diff.txt - git rev-parse HEAD > ../head - popd - rm -rf upstream/.git - git add -f upstream head .konflux - - if [[ -z $(git status --porcelain --untracked-files=no) ]]; then - echo "No change, exiting" - exit 0 - fi - - git commit -F- < /tmp/diff.txt - git rev-parse HEAD > ../head - popd - rm -rf upstream/.git - git add -f upstream head .konflux - - if [[ -z $(git status --porcelain --untracked-files=no) ]]; then - echo "No change, exiting" - exit 0 - fi - - git commit -F- < /tmp/diff.txt - git rev-parse HEAD > ../head - popd - rm -rf upstream/.git - git add -f upstream head .konflux - - if [[ -z $(git status --porcelain --untracked-files=no) ]]; then - echo "No change, exiting" - exit 0 - fi - - git commit -F- < /tmp/diff.txt - git rev-parse HEAD > ../head - popd - rm -rf upstream/.git - git add -f upstream head .konflux - - if [[ -z $(git status --porcelain --untracked-files=no) ]]; then - echo "No change, exiting" - exit 0 - fi - - git commit -F- < /tmp/diff.txt - git rev-parse HEAD > ../head - popd - rm -rf upstream/.git - git add -f upstream head .konflux - - if [[ -z $(git status --porcelain --untracked-files=no) ]]; then - echo "No change, exiting" - exit 0 - fi - - git commit -F- <