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

Workflow file to change version #811

Merged
merged 23 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
b961f15
working on an abstract GridRegion class (WIP)
Kevin-771 Jan 30, 2024
d84ad72
added comments to GridRegion
Kevin-771 Feb 2, 2024
e52e03b
Merge branch 'master' into gridRegion
Kevin-771 Feb 2, 2024
70e9f91
Merge branch 'dev' into gridRegion
Kevin-771 Feb 2, 2024
79d3608
modified GridRegion to handle generic types
Kevin-771 Feb 2, 2024
d8dea70
Merge branch 'gridRegion' of https://github.com/Bram-Hub/LEGUP into g…
Kevin-771 Feb 2, 2024
2ae7017
Update GridRegion.java
Kevin-771 Feb 2, 2024
b5b73ba
Added board initialization template
Chase-Grajeda Feb 2, 2024
6b066ae
RippleEffect importer
Chase-Grajeda Feb 9, 2024
a33eb7c
Created file for version change, currently testing in private reposit…
pitbull51067 Apr 5, 2024
7e0aace
This is the final code, I just have to change the path on Tuesday bec…
pitbull51067 Apr 15, 2024
0a3ed2e
Let's see if it works
pitbull51067 Apr 16, 2024
c9b92af
Trying to get the file right.
pitbull51067 Apr 16, 2024
ed15760
Trying to ignore the.gitignore flag.
pitbull51067 Apr 16, 2024
dea0ac6
let's try now that we have more permission
pitbull51067 Apr 16, 2024
9a9acfe
We gave GitHub actions permission to write.
pitbull51067 Apr 16, 2024
2e51bb5
Increment version number
pitbull51067 Apr 16, 2024
f0f1476
This is for the final version before I make my pull request. Changed …
pitbull51067 Apr 16, 2024
86d296e
Merge branch 'Regions' of https://github.com/pitbull51067/Legup into …
pitbull51067 Apr 16, 2024
88bcf1d
Final commit after updating branch.
pitbull51067 Apr 16, 2024
75f4ce8
Merge branch 'dev' into Regions
charlestian23 May 5, 2024
119b9a6
Version Changer Only
pitbull51067 Jan 21, 2025
645a8a0
Merge branch 'dev' into Regions
jadeandtea Jan 21, 2025
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
52 changes: 52 additions & 0 deletions .github/workflows/version-changer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Increment Version on Push

on:
push:
branches:
- master

jobs:
increment_version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Determine new version
id: update_version
run: |
current_version=$(<legup-update/bin/main/edu.rpi.legupupdate/VERSION)
IFS='.' read -r -a version_parts <<< "$current_version"
first_part="${version_parts[0]}"
second_part="${version_parts[1]}"
last_part="${version_parts[2]}"

if [[ $last_part -eq 9 ]]; then
new_last_part=0
if [[ $second_part -eq 9 ]]; then
new_second_part=0
new_first_part=$((first_part + 1))
else
new_second_part=$((second_part + 1))
new_first_part=$first_part
fi
else
new_last_part=$((last_part + 1))
new_second_part=$second_part
new_first_part=$first_part
fi

new_version="$new_first_part.$new_second_part.$new_last_part"
echo "New version: $new_version"
echo "::set-output name=version::$new_version"

- name: Update version.txt with new version
run: echo "${{ steps.update_version.outputs.version }}" > legup-update/bin/main/edu.rpi.legupupdate/VERSION

- name: Commit and push changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "Pitbull51067"
git add -f legup-update/bin/main/edu.rpi.legupupdate/VERSION
git commit -m "Increment version number"
git push
2 changes: 1 addition & 1 deletion legup-update/bin/main/edu.rpi.legupupdate/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0
6.0.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Legup>
<puzzle name="Fillapix">
<board width="3" height="3">
<cells>
<cell value="6" x="1" y="1"/>
<cell value="-1" x="0" y="0"/>
<cell value="-1" x="0" y="1"/>
<cell value="-1" x="0" y="2"/>
</cells>
</board>
</puzzle>
</Legup>
Loading