Skip to content

Commit 513645a

Browse files
remove commit: fake release for testing
1 parent 2b83892 commit 513645a

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/fake-release.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Fake Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release-version:
7+
type: string
8+
required: true
9+
description: 'Version number (for example: 0.1.0)'
10+
push:
11+
branches:
12+
- test-odh-notebooks-sync
13+
14+
env:
15+
BRANCH_NAME: main
16+
UPDATER_BRANCH: snyk-tag-monitoring-${{ github.run_id }}
17+
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
18+
19+
jobs:
20+
release:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v4
25+
with:
26+
submodules: recursive
27+
28+
- name: Append tag to Snyk monitoring list
29+
run: |
30+
sed -i 's/list_of_released_tags=(/list_of_released_tags=("${{ github.event.inputs.release-version }}", /' .github/workflows/snyk-security.yaml
31+
32+
- name: Push changes
33+
run: |
34+
git add . && git status && git checkout -b ${{ env.UPDATER_BRANCH }} && \
35+
git commit -am "Updated notebooks via ${{ env.UPDATER_BRANCH }} GitHub action" && \
36+
git push origin ${{ env.UPDATER_BRANCH }}
37+
38+
- name: Create Pull Request
39+
run: |
40+
gh pr create --repo project-codeflare/codeflare-sdk \
41+
--title "$pr_title" \
42+
--body "$pr_body" \
43+
--head $UPDATER_BRANCH \
44+
--base $BRANCH_NAME
45+
env:
46+
pr_title: "Append tag ${{ github.event.inputs.release-version }} to Snyk monitoring list"
47+
pr_body: |
48+
: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.
49+
50+
This PR appends to the list of tags that Snyk will be monitoring.

0 commit comments

Comments
 (0)