Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nvidia-patch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
nvidia-patch
Commits
5416bda4
Commit
5416bda4
authored
Nov 24, 2023
by
Jai Luthra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workflows: push to separate branch
Signed-off-by:
Jai Luthra
<
me@jailuthra.in
>
parent
c56db4a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
18 deletions
+4
-18
.github/workflows/gen_win_patches.yml
.github/workflows/gen_win_patches.yml
+4
-18
No files found.
.github/workflows/gen_win_patches.yml
View file @
5416bda4
...
@@ -3,14 +3,6 @@ name: Generate Windows patches
...
@@ -3,14 +3,6 @@ name: Generate Windows patches
on
:
on
:
workflow_dispatch
:
workflow_dispatch
:
inputs
:
inputs
:
os
:
description
:
'
Operating
System'
required
:
true
default
:
'
win'
type
:
choice
options
:
-
win
-
linux
version
:
version
:
description
:
'
Driver
Version'
description
:
'
Driver
Version'
required
:
true
required
:
true
...
@@ -37,10 +29,9 @@ jobs:
...
@@ -37,10 +29,9 @@ jobs:
env
:
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
steps
:
steps
:
-
name
:
Check
OS and
variant
-
name
:
Check variant
id
:
check_input
id
:
check_input
run
:
|
run
:
|
os="${{ inputs.os }}"
variant="${{ inputs.variant }}"
variant="${{ inputs.variant }}"
version="${{ inputs.version }}"
version="${{ inputs.version }}"
echo "Operating System: $os"
echo "Operating System: $os"
...
@@ -48,12 +39,6 @@ jobs:
...
@@ -48,12 +39,6 @@ jobs:
echo "Version: $version"
echo "Version: $version"
if [[ $version =~ ([0-9]+\.[0-9]+(-[a-zA-Z]+)?)(-.+)? ]]; then
if [[ $version =~ ([0-9]+\.[0-9]+(-[a-zA-Z]+)?)(-.+)? ]]; then
if [ "$os" != "win" ]; then
echo "Not a Windows release. Stopping the CI workflow."
exit 0
fi
echo "OS=$os" >> $GITHUB_ENV
echo "VARIANT=$variant" >> $GITHUB_ENV
echo "VARIANT=$variant" >> $GITHUB_ENV
echo "VERSION=$version" >> $GITHUB_ENV
echo "VERSION=$version" >> $GITHUB_ENV
...
@@ -120,7 +105,8 @@ jobs:
...
@@ -120,7 +105,8 @@ jobs:
cd "${{ github.workspace }}"
cd "${{ github.workspace }}"
git config --local user.email "action@github.com"
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git config --local user.name "GitHub Action"
git checkout -b ${{ env.VERSION }}
git add -A
git add -A
git diff --quiet --exit-code --cached || git commit -m "
${{ env.OS }}
: add support for ${{ env.VARIANT }} driver ${{ env.VERSION }}" -m "${{ inputs.description }}"
git diff --quiet --exit-code --cached || git commit -m "
win
: add support for ${{ env.VARIANT }} driver ${{ env.VERSION }}" -m "${{ inputs.description }}"
git push origin
master
git push origin
${{ env.VERSION }}
echo "Committed and pushed changes"
echo "Committed and pushed changes"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment