Skip to content

Commit

Permalink
Echo major minor patch
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-kong committed Oct 19, 2023
1 parent 16104c2 commit f2d007f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/force-release.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Force release libsbp
on:
pull_request:
workflow_dispatch:
inputs:
major:
Expand All @@ -15,6 +16,12 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Echo inputs
run: |
echo "major: ${{ github.event.inputs.major }}"
echo "minor: ${{ github.event.inputs.minor }}"
echo "patch: ${{ github.event.inputs.patch }}"
echo "v$MAJOR.$MINOR.$PATCH"
- uses: actions/checkout@v2
- name: Update C version
run: |
Expand All @@ -41,11 +48,11 @@ jobs:
run: echo "TODO"
- name: Commit changes
run: |
git checkout -b force-release-v$MAJOR.$MINOR.$PATCH
git checkout -b "force-release-v$MAJOR.$MINOR.$PATCH"
git add .
git status
git commit -m "force release v$MAJOR.$MINOR.$PATCH"
git push --set-upstream origin force-release-v$MAJOR.$MINOR.$PATCH
git push --set-upstream origin "force-release-v$MAJOR.$MINOR.$PATCH"
- name: Create PR
uses: peter-evans/create-pull-request@v3
with:
Expand Down

0 comments on commit f2d007f

Please sign in to comment.