Skip to content

Commit

Permalink
OJS 3.4.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
GaziYucel committed Feb 22, 2024
1 parent 6258bdd commit 7abd50e
Show file tree
Hide file tree
Showing 112 changed files with 7,791 additions and 372 deletions.
Empty file added .branch.stable-3_4_0
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: update submodule optimeta-plugin-shared

on:
# schedule: # format: minute, hour, day of the month, month, day of the week
# - cron: "0 6 * * *"
workflow_dispatch: ~

env:
GITHUB_TOKEN: ${{ github.token }}
GH_USERNAME: ${{ github.actor }}

jobs:
main_job:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2

- name: all further steps
run: |
echo "variables"
dateTime=$(date +%Y-%m-%d_%H-%M-%S)
branchName="submodule_optimeta_$dateTime"
subModuleUrl="https://github.com/TIBHannover/optimeta-plugin-shared"
subModulePath="vendor/optimeta"
message="Update $subModulePath from $subModuleUrl on $dateTime"
echo "setup git username: $GH_USERNAME"
git config user.email "$GH_USERNAME"
echo "setup git email: $GH_USERNAME@users.noreply.github.com"
git config user.name "$GH_USERNAME@users.noreply.github.com"
echo "remove directory $subModulePath recursively"
rm -rf $subModulePath
echo "checkout to new local branch with name $branchName"
git checkout -b $branchName
echo "clone $subModuleUrl to path $subModulePath"
git clone "$subModuleUrl" "$subModulePath"
echo "remove directory $subModulePath/.git recursively"
rm -rf "$subModulePath/.git"
echo "create file $subModulePath/_$dateTime.txt"
echo "$dateTime" > "$subModulePath/_$dateTime.txt"
echo "add directory $subModulePath recursively"
git add --all $subModulePath
echo "commit all changes with message: $message"
git commit -m "$message"
echo "push to new branch with name: $branchName"
git push -u origin $branchName
echo "create pull request with label and body: $message"
gh pr create --title "$message" --body "$message"
echo "end"
Loading

0 comments on commit 7abd50e

Please sign in to comment.