Skip to content

Commit

Permalink
next
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianZaccaria committed Oct 31, 2024
1 parent 513645a commit 470f0ea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/fake-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:
BRANCH_NAME: main
UPDATER_BRANCH: snyk-tag-monitoring-${{ github.run_id }}
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
RELEASE_VERSION: ${{ github.event.inputs.release-version || '0.2.0' }}

jobs:
release:
Expand All @@ -27,13 +28,15 @@ jobs:

- name: Append tag to Snyk monitoring list
run: |
sed -i 's/list_of_released_tags=(/list_of_released_tags=("${{ github.event.inputs.release-version }}", /' .github/workflows/snyk-security.yaml
sed -i 's/list_of_released_tags=(/list_of_released_tags=("v$RELEASE_VERSION", /' .github/workflows/snyk-security.yaml
- name: Push changes
run: |
git add . && git status && git checkout -b ${{ env.UPDATER_BRANCH }} && \
git commit -am "Updated notebooks via ${{ env.UPDATER_BRANCH }} GitHub action" && \
git push origin ${{ env.UPDATER_BRANCH }}
env:
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}

- name: Create Pull Request
run: |
Expand All @@ -43,7 +46,7 @@ jobs:
--head $UPDATER_BRANCH \
--base $BRANCH_NAME
env:
pr_title: "Append tag ${{ github.event.inputs.release-version }} to Snyk monitoring list"
pr_title: "Append tag $RELEASE_VERSION to Snyk monitoring list"
pr_body: |
:rocket: This is an automated Pull Request generated by [release.yaml](https://github.com/project-codeflare/codeflare-sdk/blob/main/.github/workflows/release.yaml) workflow.
Expand Down

0 comments on commit 470f0ea

Please sign in to comment.