Skip to content

Commit

Permalink
Use branch name as tag for promotion in CI config (#2510)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Gencur <[email protected]>
  • Loading branch information
openshift-cherrypick-robot and mgencur authored Feb 27, 2024
1 parent ac5ea86 commit bb76997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-generate-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ jobs:
- name: Generate CI (on workflow dispatch)
if: github.event_name == 'workflow_dispatch'
working-directory: ./src/github.com/openshift-knative/hack
run: go run ./cmd/prowcopy --branch ${{ inputs.branch }} --tag "openshift-serverless-v$(yq read ../serverless-operator/olm-catalog/serverless-operator/project.yaml project.version)"
run: go run ./cmd/prowcopy --branch ${{ inputs.branch }} --tag ${{ inputs.branch }}

- name: Generate CI (on branch created)
if: github.event.created
working-directory: ./src/github.com/openshift-knative/hack
run: go run ./cmd/prowcopy --branch ${{ github.ref_name }} --tag "openshift-serverless-v$(yq read ../serverless-operator/olm-catalog/serverless-operator/project.yaml project.version)"
run: go run ./cmd/prowcopy --branch ${{ github.ref_name }} --tag ${{ github.ref_name }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
Expand Down

0 comments on commit bb76997

Please sign in to comment.