Skip to content

Commit

Permalink
Remove create PR step and trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshkal committed Aug 4, 2024
1 parent 2ad20a6 commit f84fef7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/release-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,31 +120,31 @@ jobs:
echo "OUTPUT=oci://ghcr.io/intelops/policyhub/genval/${{ matrix.policy.artifact-name }}:${GIT_TAG}" >> $GITHUB_ENV
# Write OCI URL to output file
- name: Write policy URL
if: steps.changes.outputs.src == 'true'
uses: DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
with:
path: "genval/outputs/${{ matrix.policy.output }}.env"
write-mode: overwrite
contents: |
# GitHub generated file
# Please do not modify or delete this file
${{ matrix.policy.output}}=${{ env.OUTPUT }}
- name: Commit & Push
if: steps.changes.outputs.src == 'true'
uses: Andro999b/push@c77535fe7a94645f7ceca83e48e6cc977620710e # v1.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: "${{ matrix.policy.name}}-${{ github.run_number }}"
force: true
message: "Overwritten by GitHub Actions - ${{ github.run_number }}"
- name: Create Pull Request
if: steps.changes.outputs.src == 'true'
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: "${{ matrix.policy.name}}-${{ github.run_number }}"
title: "Update policy URL for ${{ matrix.policy.name }}"
body: "This pull request updates the policy URL for ${{ matrix.policy.name }}."
base: main
# - name: Write policy URL
# if: steps.changes.outputs.src == 'true'
# uses: DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
# with:
# path: "genval/outputs/${{ matrix.policy.output }}.env"
# write-mode: overwrite
# contents: |
# # GitHub generated file
# # Please do not modify or delete this file
# ${{ matrix.policy.output}}=${{ env.OUTPUT }}
#
# - name: Commit & Push
# if: steps.changes.outputs.src == 'true'
# uses: Andro999b/push@c77535fe7a94645f7ceca83e48e6cc977620710e # v1.3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: "${{ matrix.policy.name}}-${{ github.run_number }}"
# force: true
# message: "Overwritten by GitHub Actions - ${{ github.run_number }}"
# - name: Create Pull Request
# if: steps.changes.outputs.src == 'true'
# uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# branch: "${{ matrix.policy.name}}-${{ github.run_number }}"
# title: "Update policy URL for ${{ matrix.policy.name }}"
# body: "This pull request updates the policy URL for ${{ matrix.policy.name }}."
# base: main
1 change: 1 addition & 0 deletions genval/modules/cuemod-k8s:v1.30/policy/policy.cue
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
package k8s

0 comments on commit f84fef7

Please sign in to comment.