diff --git a/.github/actions/bump_precommit_hook/action.yml b/.github/actions/bump_precommit_hook/action.yml new file mode 100644 index 0000000..f38ea43 --- /dev/null +++ b/.github/actions/bump_precommit_hook/action.yml @@ -0,0 +1,16 @@ +inputs: + semver: + required: true + type: string + +runs: + using: composite + steps: + - name: Update plugin Version + shell: bash + run: | + sed -i "s/^# VERSION.*/# VERSION ${{inputs.semver}}/" ./src/deadline/keyshot_submitter/Submit\ to\ AWS\ Deadline\ Cloud.py + major=$(printf ${{inputs.semver}} | cut -d '.' -f1) + minor=$(printf ${{inputs.semver}} | cut -d '.' -f2) + sed -i "s/keyshot-openjd=[0-9]*.[0-9]*.\\*/keyshot-openjd=$major.$minor.\\*/" ./src/deadline/keyshot_submitter/Submit\ to\ AWS\ Deadline\ Cloud.py + git add ./src/deadline/keyshot_submitter/Submit\ to\ AWS\ Deadline\ Cloud.py \ No newline at end of file diff --git a/.github/actions/prepush_release_hook/action.yml b/.github/actions/prepush_release_hook/action.yml new file mode 100644 index 0000000..42f5529 --- /dev/null +++ b/.github/actions/prepush_release_hook/action.yml @@ -0,0 +1,18 @@ +inputs: + semver: + required: true + type: string + tag: + required: true + type: string + +runs: + using: composite + steps: + - name: Zip submitter plugin + shell: bash + run: | + mkdir dist_extras + cd src/deadline/keyshot_submitter + zip -r ../../../dist_extras/keyshot_submitter_plugin_${{inputs.semver}}.zip . + cd ../../../