diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml new file mode 100644 index 0000000000..237ee58312 --- /dev/null +++ b/.github/workflows/version.yml @@ -0,0 +1,15 @@ +on: release +jobs: + add-dev-to-version: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Append version with dev + run: sed -i '/20[0-9][0-9]\.[0-9][0-9]/ s/]/-dev]/' configure.ac + - name: Create pull request + uses: peter-evans/create-pull-request@v4 + with: + base: main # creates a new branch off of main + branch: add-dev-post-release # name of the created branch + branch-suffix: timestamp # add a timestamp to branch name + delete-branch: true # delete afer merge diff --git a/configure.ac b/configure.ac index 2a4c15f1e7..b0b8bb309d 100644 --- a/configure.ac +++ b/configure.ac @@ -25,7 +25,7 @@ AC_PREREQ([2.69]) # Initialize with name, version, and support email address. AC_INIT([GFDL FMS Library], - [2022.04.00], + [2022.04.00-dev], [gfdl.climate.model.info@noaa.gov], [FMS], [https://www.github.com/NOAA-GFDL/FMS])