Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: force release for automated libsbp releases #1365

Draft
wants to merge 20 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Echo major minor patch
adrian-kong committed Oct 19, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit f2d007ff53a21b786d62400cdb0a5067fc96f982
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:
@@ -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: |
@@ -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: